Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 932775a4 authored by venkatesh.pallipadi@intel.com's avatar venkatesh.pallipadi@intel.com Committed by Ingo Molnar
Browse files

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: default avatarVenkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: default avatarShaohua Li <shaohua.li@intel.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 1f3addcf
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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