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

Commit 7b4d4692 authored by Alexey Starikovskiy's avatar Alexey Starikovskiy Committed by Len Brown
Browse files

ACPI: EC: count interrupts only if called from interrupt handler.



fix 2.6.28 EC interrupt storm regression

Signed-off-by: default avatarAlexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent ed313489
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -219,6 +219,7 @@ static void gpe_transaction(struct acpi_ec *ec, u8 status)
	goto unlock;
err:
	/* false interrupt, state didn't change */
	if (in_interrupt())
		++ec->curr->irq_count;
unlock:
	spin_unlock_irqrestore(&ec->curr_lock, flags);