diff options
author | Mike Travis <travis@sgi.com> | 2008-12-16 20:33:55 -0500 |
---|---|---|
committer | Mike Travis <travis@sgi.com> | 2008-12-16 20:40:56 -0500 |
commit | 6eeb7c5a99434596c5953a95baa17d2f085664e3 (patch) | |
tree | 30fd0b08b0a427b953beaf92927468bf86fad956 /arch/x86/include/asm/bigsmp | |
parent | 95d313cf1c1ecedc8bec5727b09bdacbf67dfc45 (diff) |
x86: update add-cpu_mask_to_apicid_and to use struct cpumask*
Impact: use updated APIs
Various API updates for x86:add-cpu_mask_to_apicid_and
(Note: separate because previous patch has been "backported" to 2.6.27.)
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Mike Travis <travis@sgi.com>
Diffstat (limited to 'arch/x86/include/asm/bigsmp')
-rw-r--r-- | arch/x86/include/asm/bigsmp/apic.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86/include/asm/bigsmp/apic.h b/arch/x86/include/asm/bigsmp/apic.h index 99f9abacf6a2..976399debb3f 100644 --- a/arch/x86/include/asm/bigsmp/apic.h +++ b/arch/x86/include/asm/bigsmp/apic.h | |||
@@ -129,8 +129,8 @@ static inline unsigned int cpu_mask_to_apicid(const cpumask_t *cpumask) | |||
129 | return apicid; | 129 | return apicid; |
130 | } | 130 | } |
131 | 131 | ||
132 | static inline unsigned int cpu_mask_to_apicid_and(const cpumask_t *cpumask, | 132 | static inline unsigned int cpu_mask_to_apicid_and(const struct cpumask *cpumask, |
133 | const cpumask_t *andmask) | 133 | const struct cpumask *andmask) |
134 | { | 134 | { |
135 | int cpu; | 135 | int cpu; |
136 | 136 | ||
@@ -138,9 +138,9 @@ static inline unsigned int cpu_mask_to_apicid_and(const cpumask_t *cpumask, | |||
138 | * We're using fixed IRQ delivery, can only return one phys APIC ID. | 138 | * We're using fixed IRQ delivery, can only return one phys APIC ID. |
139 | * May as well be the first. | 139 | * May as well be the first. |
140 | */ | 140 | */ |
141 | while ((cpu = next_cpu(-1, *cpumask)) < nr_cpu_ids) | 141 | cpu = cpumask_any_and(cpumask, andmask); |
142 | if (cpu_isset(cpu, *andmask)) | 142 | if (cpu < nr_cpu_ids) |
143 | return cpu_to_logical_apicid(cpu); | 143 | return cpu_to_logical_apicid(cpu); |
144 | 144 | ||
145 | return BAD_APICID; | 145 | return BAD_APICID; |
146 | } | 146 | } |