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/kernel/genx2apic_phys.c | |
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/kernel/genx2apic_phys.c')
-rw-r--r-- | arch/x86/kernel/genx2apic_phys.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86/kernel/genx2apic_phys.c b/arch/x86/kernel/genx2apic_phys.c index d5578bb8f165..9d0386c7e798 100644 --- a/arch/x86/kernel/genx2apic_phys.c +++ b/arch/x86/kernel/genx2apic_phys.c | |||
@@ -122,8 +122,8 @@ static unsigned int x2apic_cpu_mask_to_apicid(const cpumask_t *cpumask) | |||
122 | return BAD_APICID; | 122 | return BAD_APICID; |
123 | } | 123 | } |
124 | 124 | ||
125 | static unsigned int x2apic_cpu_mask_to_apicid_and(const cpumask_t *cpumask, | 125 | static unsigned int x2apic_cpu_mask_to_apicid_and(const struct cpumask *cpumask, |
126 | const cpumask_t *andmask) | 126 | const struct cpumask *andmask) |
127 | { | 127 | { |
128 | int cpu; | 128 | int cpu; |
129 | 129 | ||
@@ -131,9 +131,9 @@ static unsigned int x2apic_cpu_mask_to_apicid_and(const cpumask_t *cpumask, | |||
131 | * We're using fixed IRQ delivery, can only return one phys APIC ID. | 131 | * We're using fixed IRQ delivery, can only return one phys APIC ID. |
132 | * May as well be the first. | 132 | * May as well be the first. |
133 | */ | 133 | */ |
134 | while ((cpu = next_cpu(-1, *cpumask)) < nr_cpu_ids) | 134 | cpu = cpumask_any_and(cpumask, andmask); |
135 | if (cpu_isset(cpu, *andmask)) | 135 | if (cpu < nr_cpu_ids) |
136 | return per_cpu(x86_cpu_to_apicid, cpu); | 136 | return per_cpu(x86_cpu_to_apicid, cpu); |
137 | return BAD_APICID; | 137 | return BAD_APICID; |
138 | } | 138 | } |
139 | 139 | ||