Skip to contentSkip to conversation

x86/irq: fix move_irq_desc for node without ram

PATCH In review Yinghai Lu 1 participant 2 messages Aug 4, 2009 – Aug 8, 2009 IRQ

lore
Share & tools
lore

Yinghai Lu

author
#0 lore raw

PATCH 1/1 x86/irq: fix move_irq_desc for node without ram

don't move it if target node is -1

---
 kernel/irq/numa_migrate.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/irq/numa_migrate.c +2 -2
Index: linux-2.6/kernel/irq/numa_migrate.c
===================================================================
@@ -107,8 +107,8 @@ out_unlock:
 
 struct irq_desc *move_irq_desc(struct irq_desc *desc, int node)
 {
-	/* those all static, do move them */
-	if (desc->irq < NR_IRQS_LEGACY)
+	/* those static or target node is -1, do not move them */
+	if (desc->irq < NR_IRQS_LEGACY || node == -1)
 		return desc;
 
 	if (desc->node != node)
#1 lore raw

[tip:irq/urgent] x86/irq: Fix move_irq_desc() for nodes without ram

Commit-ID:  ad7d6c7a0654a4bbda3e109f56af713267e96274
Gitweb:     http://git.kernel.org/tip/ad7d6c7a0654a4bbda3e109f56af713267e96274
Author:     Yinghai Lu <[email protected]>
AuthorDate: Tue, 4 Aug 2009 09:01:33 -0700
Committer:  Ingo Molnar <[email protected]>
CommitDate: Sat, 8 Aug 2009 17:06:03 +0200

x86/irq: Fix move_irq_desc() for nodes without ram

Don't move it if target node is -1.

LKML-Reference: <[email protected]>

---
 kernel/irq/numa_migrate.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
kernel/irq/numa_migrate.c +2 -2
index 2f69bee..3fd3019 100644
@@ -107,8 +107,8 @@ out_unlock:
 
 struct irq_desc *move_irq_desc(struct irq_desc *desc, int node)
 {
-	/* those all static, do move them */
-	if (desc->irq < NR_IRQS_LEGACY)
+	/* those static or target node is -1, do not move them */
+	if (desc->irq < NR_IRQS_LEGACY || node == -1)
 		return desc;
 
 	if (desc->node != node)