Messages in this thread Patch in this message | | | Date | Fri, 05 Sep 2008 18:02:15 -0700 | From | venkatesh.pallipadi@intel ... | Subject | [RFC 1/4] 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 <venkatesh.pallipadi@intel.com> Signed-off-by: Shaohua Li <shaohua.li@intel.com>
--- kernel/irq/manage.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Index: tip/kernel/irq/manage.c =================================================================== --- tip.orig/kernel/irq/manage.c 2008-09-05 09:13:51.000000000 -0700 +++ tip/kernel/irq/manage.c 2008-09-05 09:28:01.000000000 -0700 @@ -87,10 +87,11 @@ int irq_set_affinity(unsigned int irq, c 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 --
| |