mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 12:10:52 -04:00
ACPI: EC: count interrupts only if called from interrupt handler.
fix 2.6.28 EC interrupt storm regression Signed-off-by: Alexey Starikovskiy <[email protected]> Signed-off-by: Len Brown <[email protected]>
This commit is contained in:
parent
ed313489ba
commit
7b4d469228
1 changed files with 2 additions and 1 deletions
|
|
@ -219,7 +219,8 @@ static void gpe_transaction(struct acpi_ec *ec, u8 status)
|
|||
goto unlock;
|
||||
err:
|
||||
/* false interrupt, state didn't change */
|
||||
++ec->curr->irq_count;
|
||||
if (in_interrupt())
|
||||
++ec->curr->irq_count;
|
||||
unlock:
|
||||
spin_unlock_irqrestore(&ec->curr_lock, flags);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue