Skip to contentSkip to conversation

power: stop pda_power from requesting shared a IRQ as IRQF_DISABLED

PATCH New Philipp Zabel 1 participant 1 message Jan 18, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 power: stop pda_power from requesting shared a IRQ as IRQF_DISABLED

IRQF_DISABLED is not guaranteed for shared IRQs. I think power_changed_isr doesn't need it anyway, as it only fires a timer.
This patch enables IRQF_SAMPLE_RANDOM instead.

---
 drivers/power/pda_power.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/power/pda_power.c +1 -1
index d30bb76..b56a704 100644
@@ -20,7 +20,7 @@
 
 static inline unsigned int get_irq_flags(struct resource *res)
 {
-	unsigned int flags = IRQF_DISABLED | IRQF_SHARED;
+	unsigned int flags = IRQF_SAMPLE_RANDOM | IRQF_SHARED;
 
 	flags |= res->flags & IRQF_TRIGGER_MASK;
 
Signature · 1 line
1.5.6.5