diff options
author | Jayachandran C <jchandra@broadcom.com> | 2012-10-31 08:01:37 -0400 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2012-11-09 05:37:19 -0500 |
commit | 2a37b1ae443f20470a789b12a45cbc249c9e50a6 (patch) | |
tree | 101eacbdbc8a34ae7bcd0da8950972165f00d253 /arch/mips/netlogic/xlr/wakeup.c | |
parent | 7143246e9ace7f6b50aad217289dd64b7a44dd2c (diff) |
MIPS: Netlogic: Move from u32 cpumask to cpumask_t
Initial code to support more than 32 cpus. The platform CPU mask
is updated from 32-bit mask to cpumask_t. Convert places that use
cpu_/cpus_ functions to use cpumask_* functions.
Signed-off-by: Jayachandran C <jchandra@broadcom.com>
Patchwork: http://patchwork.linux-mips.org/patch/4464
Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'arch/mips/netlogic/xlr/wakeup.c')
-rw-r--r-- | arch/mips/netlogic/xlr/wakeup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/netlogic/xlr/wakeup.c b/arch/mips/netlogic/xlr/wakeup.c index db5d987d4881..0878924da153 100644 --- a/arch/mips/netlogic/xlr/wakeup.c +++ b/arch/mips/netlogic/xlr/wakeup.c | |||
@@ -59,7 +59,7 @@ int __cpuinit xlr_wakeup_secondary_cpus(void) | |||
59 | boot_cpu = hard_smp_processor_id(); | 59 | boot_cpu = hard_smp_processor_id(); |
60 | nlm_set_nmi_handler(nlm_rmiboot_preboot); | 60 | nlm_set_nmi_handler(nlm_rmiboot_preboot); |
61 | for (i = 0; i < NR_CPUS; i++) { | 61 | for (i = 0; i < NR_CPUS; i++) { |
62 | if (i == boot_cpu || (nlm_cpumask & (1u << i)) == 0) | 62 | if (i == boot_cpu || !cpumask_test_cpu(i, &nlm_cpumask)) |
63 | continue; | 63 | continue; |
64 | nlm_pic_send_ipi(nlm_pic_base, i, 1, 1); /* send NMI */ | 64 | nlm_pic_send_ipi(nlm_pic_base, i, 1, 1); /* send NMI */ |
65 | } | 65 | } |