aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/include/asm
diff options
context:
space:
mode:
authorJayachandran C <jchandra@broadcom.com>2012-10-31 08:01:37 -0400
committerJohn Crispin <blogic@openwrt.org>2012-11-09 05:37:19 -0500
commit2a37b1ae443f20470a789b12a45cbc249c9e50a6 (patch)
tree101eacbdbc8a34ae7bcd0da8950972165f00d253 /arch/mips/include/asm
parent7143246e9ace7f6b50aad217289dd64b7a44dd2c (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/include/asm')
-rw-r--r--arch/mips/include/asm/netlogic/common.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/mips/include/asm/netlogic/common.h b/arch/mips/include/asm/netlogic/common.h
index fdd2f44c7b59..fd735bcac3e6 100644
--- a/arch/mips/include/asm/netlogic/common.h
+++ b/arch/mips/include/asm/netlogic/common.h
@@ -45,6 +45,8 @@
45#define BOOT_NMI_HANDLER 8 45#define BOOT_NMI_HANDLER 8
46 46
47#ifndef __ASSEMBLY__ 47#ifndef __ASSEMBLY__
48#include <linux/cpumask.h>
49
48struct irq_desc; 50struct irq_desc;
49extern struct plat_smp_ops nlm_smp_ops; 51extern struct plat_smp_ops nlm_smp_ops;
50extern char nlm_reset_entry[], nlm_reset_entry_end[]; 52extern char nlm_reset_entry[], nlm_reset_entry_end[];
@@ -52,7 +54,7 @@ void nlm_smp_function_ipi_handler(unsigned int irq, struct irq_desc *desc);
52void nlm_smp_resched_ipi_handler(unsigned int irq, struct irq_desc *desc); 54void nlm_smp_resched_ipi_handler(unsigned int irq, struct irq_desc *desc);
53void nlm_smp_irq_init(void); 55void nlm_smp_irq_init(void);
54void nlm_boot_secondary_cpus(void); 56void nlm_boot_secondary_cpus(void);
55int nlm_wakeup_secondary_cpus(u32 wakeup_mask); 57int nlm_wakeup_secondary_cpus(void);
56void nlm_rmiboot_preboot(void); 58void nlm_rmiboot_preboot(void);
57 59
58static inline void 60static inline void
@@ -71,6 +73,7 @@ unsigned int nlm_get_cpu_frequency(void);
71 73
72extern unsigned long nlm_common_ebase; 74extern unsigned long nlm_common_ebase;
73extern int nlm_threads_per_core; 75extern int nlm_threads_per_core;
74extern uint32_t nlm_cpumask, nlm_coremask; 76extern uint32_t nlm_coremask;
77extern cpumask_t nlm_cpumask;
75#endif 78#endif
76#endif /* _NETLOGIC_COMMON_H_ */ 79#endif /* _NETLOGIC_COMMON_H_ */