projects
/
platform
/
kernel
/
linux-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed31348
)
ACPI: EC: count interrupts only if called from interrupt handler.
author
Alexey Starikovskiy
<astarikovskiy@suse.de>
Thu, 13 Nov 2008 09:00:03 +0000
(12:00 +0300)
committer
Len Brown
<len.brown@intel.com>
Wed, 26 Nov 2008 22:16:45 +0000
(17:16 -0500)
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>
drivers/acpi/ec.c
patch
|
blob
|
history
diff --git
a/drivers/acpi/ec.c
b/drivers/acpi/ec.c
index
cf41f9f
..
30f3ef2
100644
(file)
--- 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);
}