From: Paul Burton Date: Thu, 27 Mar 2014 10:57:01 +0000 (+0000) Subject: MIPS: MT: core_nvpes function to retrieve VPE count X-Git-Tag: v3.15-rc1~125^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=968a0734db05ad907bc8fffabdbe7da5e1e731f6;p=pandora-kernel.git MIPS: MT: core_nvpes function to retrieve VPE count This function simply returns the number of VPEs present in the current core, or 1 if the core does not implement the MT ASE. In SMP kernels this will typically equal smp_num_siblings, however it will also be usable in UP kernels and helps prepare for the possibility of a heterogenous system where the VPE count is not the same across all cores. Signed-off-by: Paul Burton Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/6665/ Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed