From: Yinghai Lu Date: Tue, 4 Aug 2009 16:01:33 +0000 (-0700) Subject: x86/irq: Fix move_irq_desc() for nodes without ram X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ad7d6c7a0654a4bbda3e109f56af713267e96274;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git x86/irq: Fix move_irq_desc() for nodes without ram Don't move it if target node is -1. Signed-off-by: Yinghai Lu LKML-Reference: <4A785B5D.4070702@kernel.org> Signed-off-by: Ingo Molnar --- diff --git a/kernel/irq/numa_migrate.c b/kernel/irq/numa_migrate.c index 2f69bee57bf2..3fd30197da2e 100644 --- a/kernel/irq/numa_migrate.c +++ b/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)