From: venkatesh.pallipadi@intel.com Date: Sat, 6 Sep 2008 01:02:15 +0000 (-0700) Subject: x86: HPET_MSI change IRQ affinity in process context when it is disabled X-Git-Tag: v2.6.28-rc1~80^2~55 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=932775a4ab622e3c99bd59f14cc7d96722f79501;p=linux-2.6-omap-h63xx.git x86: HPET_MSI change IRQ affinity in process context when it is disabled Change the IRQ affinity in the process context when the IRQ is disabled. Signed-off-by: Venkatesh Pallipadi Signed-off-by: Shaohua Li Signed-off-by: Ingo Molnar --- diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index ddc956861a5..ad2ce72c83c 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c @@ -87,10 +87,11 @@ int irq_set_affinity(unsigned int irq, cpumask_t cpumask) return -EINVAL; #ifdef CONFIG_GENERIC_PENDING_IRQ - if (desc->status & IRQ_MOVE_PCNTXT) { + if (desc->status & IRQ_MOVE_PCNTXT || desc->status & IRQ_DISABLED) { unsigned long flags; spin_lock_irqsave(&desc->lock, flags); + desc->affinity = cpumask; desc->chip->set_affinity(irq, cpumask); spin_unlock_irqrestore(&desc->lock, flags); } else