X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fasm-mips%2Fsmp.h;h=dc770025a9b0c98fcbe954f677713c0f85f91b7d;hb=2463ef22bf8b6e22048bd26f940c014f7e1f0998;hp=1608fd71d6f7ffd7d1e1a39cf181515c658c3ea4;hpb=52ab3f3dc711eeccbfbcc5d4f5c5d9b9ff59650f;p=linux-2.6 diff --git a/include/asm-mips/smp.h b/include/asm-mips/smp.h index 1608fd71d6..dc770025a9 100644 --- a/include/asm-mips/smp.h +++ b/include/asm-mips/smp.h @@ -49,13 +49,6 @@ extern struct call_data_struct *call_data; extern cpumask_t phys_cpu_present_map; #define cpu_possible_map phys_cpu_present_map -extern cpumask_t cpu_callout_map; -/* We don't mark CPUs online until __cpu_up(), so we need another measure */ -static inline int num_booting_cpus(void) -{ - return cpus_weight(cpu_callout_map); -} - /* * These are defined by the board-specific code. */ @@ -67,6 +60,15 @@ static inline int num_booting_cpus(void) */ extern void core_send_ipi(int cpu, unsigned int action); +static inline void core_send_ipi_mask(cpumask_t mask, unsigned int action) +{ + unsigned int i; + + for_each_cpu_mask(i, mask) + core_send_ipi(i, action); +} + + /* * Firmware CPU startup hook */