ACPI: EC: count interrupts only if called from interrupt handler.
fix 2.6.28 EC interrupt storm regression Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
committed by
Len Brown
parent
ed313489ba
commit
7b4d469228
@@ -219,7 +219,8 @@ static void gpe_transaction(struct acpi_ec *ec, u8 status)
|
|||||||
goto unlock;
|
goto unlock;
|
||||||
err:
|
err:
|
||||||
/* false interrupt, state didn't change */
|
/* false interrupt, state didn't change */
|
||||||
++ec->curr->irq_count;
|
if (in_interrupt())
|
||||||
|
++ec->curr->irq_count;
|
||||||
unlock:
|
unlock:
|
||||||
spin_unlock_irqrestore(&ec->curr_lock, flags);
|
spin_unlock_irqrestore(&ec->curr_lock, flags);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user