diff options
author | Santosh Sivaraj | 2017-06-27 09:00:06 +0200 |
---|---|---|
committer | Michael Ellerman | 2017-06-28 05:08:16 +0200 |
commit | c642af9c41f09296997519499d16ff30e700816a (patch) | |
tree | d74a02b808bef6b1b415f63a9bb23f8d4c85c3d3 /arch/powerpc/kernel | |
parent | powerpc/smp: Do not BUG_ON if invalid CPU during kick (diff) | |
download | kernel-qcow2-linux-c642af9c41f09296997519499d16ff30e700816a.tar.gz kernel-qcow2-linux-c642af9c41f09296997519499d16ff30e700816a.tar.xz kernel-qcow2-linux-c642af9c41f09296997519499d16ff30e700816a.zip |
powerpc/smp: Convert NR_CPUS to nr_cpu_ids
nr_cpu_ids can be limited by nr_cpus boot parameter, whereas NR_CPUS is a
compile time constant, which shouldn't be compared against during cpu kick.
Signed-off-by: Santosh Sivaraj <santosh@fossix.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r-- | arch/powerpc/kernel/smp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c index 05bf5836107c..418019728efa 100644 --- a/arch/powerpc/kernel/smp.c +++ b/arch/powerpc/kernel/smp.c @@ -112,7 +112,7 @@ int smp_generic_cpu_bootable(unsigned int nr) #ifdef CONFIG_PPC64 int smp_generic_kick_cpu(int nr) { - if (nr < 0 || nr >= NR_CPUS) + if (nr < 0 || nr >= nr_cpu_ids) return -EINVAL; /* |