[PATCH] x86_64: Use for_each_cpu_mask for clustered IPI flush
Makes it slightly more efficient. Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
acc7b6f01c
commit
74f0629397
|
@ -82,9 +82,7 @@ static inline void send_IPI_mask_sequence(cpumask_t mask, int vector)
|
||||||
*/
|
*/
|
||||||
local_irq_save(flags);
|
local_irq_save(flags);
|
||||||
|
|
||||||
for (query_cpu = 0; query_cpu < NR_CPUS; ++query_cpu) {
|
for_each_cpu_mask(query_cpu, mask) {
|
||||||
if (cpu_isset(query_cpu, mask)) {
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Wait for idle.
|
* Wait for idle.
|
||||||
*/
|
*/
|
||||||
|
@ -106,7 +104,6 @@ static inline void send_IPI_mask_sequence(cpumask_t mask, int vector)
|
||||||
*/
|
*/
|
||||||
apic_write_around(APIC_ICR, cfg);
|
apic_write_around(APIC_ICR, cfg);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
local_irq_restore(flags);
|
local_irq_restore(flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue