mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] x86_64 irq: remove extra smp_processor_id calling
@ 2007-03-06  4:16 Yinghai Lu
  0 siblings, 0 replies; only message in thread
From: Yinghai Lu @ 2007-03-06  4:16 UTC (permalink / raw)
  To: ebiederm, Andrew Morton
  Cc: linux-kernel, Ingo Molnar, Andi Kleen, Linus Torvalds

[-- Attachment #1: Type: text/plain, Size: 23 bytes --]

please check the patch

[-- Attachment #2: 1_irq_move_clean.patch --]
[-- Type: text/x-patch, Size: 703 bytes --]

[PATCH 1/2] x86_64 irq: remove extra smp_processor_id calling

remove the extra smp_processor_id calling.

Signed-off-by: Yinghai Lu <yinghai.lu@amd.com> 

diff --git a/arch/x86_64/kernel/io_apic.c b/arch/x86_64/kernel/io_apic.c
index c6a5bc7..318d905 100644
--- a/arch/x86_64/kernel/io_apic.c
+++ b/arch/x86_64/kernel/io_apic.c
@@ -1407,8 +1407,7 @@ static void irq_complete_move(unsigned int irq)
 
 	vector = ~get_irq_regs()->orig_rax;
 	me = smp_processor_id();
-	if ((vector == cfg->vector) &&
-	    cpu_isset(smp_processor_id(), cfg->domain)) {
+	if ((vector == cfg->vector) && cpu_isset(me, cfg->domain)) {
 		cpumask_t cleanup_mask;
 
 		cpus_and(cleanup_mask, cfg->old_domain, cpu_online_map);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-03-06  4:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-06  4:16 [PATCH 1/2] x86_64 irq: remove extra smp_processor_id calling Yinghai Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®