From: Alexey Starikovskiy Date: Thu, 13 Nov 2008 09:00:03 +0000 (+0300) Subject: ACPI: EC: count interrupts only if called from interrupt handler. X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=7b4d469228a92a00e412675817cedd60133de38a;p=deliverable%2Flinux.git ACPI: EC: count interrupts only if called from interrupt handler. fix 2.6.28 EC interrupt storm regression Signed-off-by: Alexey Starikovskiy Signed-off-by: Len Brown --- diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index cf41f9fc24a7..30f3ef236ecb 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c @@ -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); }