diff options
| -rw-r--r-- | arch/powerpc/include/asm/cputhreads.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/cputhreads.h b/arch/powerpc/include/asm/cputhreads.h index 2bf8e9307be9..4c8ad592ae33 100644 --- a/arch/powerpc/include/asm/cputhreads.h +++ b/arch/powerpc/include/asm/cputhreads.h | |||
| @@ -55,7 +55,7 @@ static inline cpumask_t cpu_thread_mask_to_cores(const struct cpumask *threads) | |||
| 55 | 55 | ||
| 56 | static inline int cpu_nr_cores(void) | 56 | static inline int cpu_nr_cores(void) |
| 57 | { | 57 | { |
| 58 | return NR_CPUS >> threads_shift; | 58 | return nr_cpu_ids >> threads_shift; |
| 59 | } | 59 | } |
| 60 | 60 | ||
| 61 | static inline cpumask_t cpu_online_cores_map(void) | 61 | static inline cpumask_t cpu_online_cores_map(void) |
