]> git.karo-electronics.de Git - linux-beck.git/commitdiff
x86: HPET_MSI change IRQ affinity in process context when it is disabled
authorvenkatesh.pallipadi@intel.com <venkatesh.pallipadi@intel.com>
Sat, 6 Sep 2008 01:02:15 +0000 (18:02 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 16 Oct 2008 14:53:07 +0000 (16:53 +0200)
Change the IRQ affinity in the process context when the IRQ is disabled.

Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/irq/manage.c

index ddc956861a582215d32c9322424da832c253607e..ad2ce72c83c498422815998a2b1e0c73dd6ac710 100644 (file)
@@ -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