瀏覽代碼

[PARISC] fix per-cpu flag problem in the cpu affinity checkers

The CHECK_IRQ_PER_CPU is wrong, it should be checking
irq_to_desc(irq)->status not just irq.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: stable@kernel.org
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Thomas Gleixner 14 年之前
父節點
當前提交
9804c9eaea
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      arch/parisc/kernel/irq.c

+ 1 - 1
arch/parisc/kernel/irq.c

@@ -108,7 +108,7 @@ int cpu_check_affinity(unsigned int irq, const struct cpumask *dest)
 	int cpu_dest;
 
 	/* timer and ipi have to always be received on all CPUs */
-	if (CHECK_IRQ_PER_CPU(irq)) {
+	if (CHECK_IRQ_PER_CPU(irq_to_desc(irq)->status)) {
 		/* Bad linux design decision.  The mask has already
 		 * been set; we must reset it */
 		cpumask_setall(irq_desc[irq].affinity);