Skip to content

handle_threaded_irq()

David Brownell linux-input lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2GENIRQ: add handle_threaded_irq() flow handlerinclude/linux/irq.h kernel/irq/chip.c+66 -23 replies
2/2twl4030: use new handle_threaded_irq() flow handlerdrivers/mfd/twl4030-irq.c drivers/rtc/rtc-twl4030.c drivers/usb/otg/twl4030-usb.c+5 -260 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [patch/rfc 0/2] handle_threaded_irq()

This is a followup to help address one of the omissions in the threaded IRQ patches (v2) posted recently. To recap, those provided a quickcheck() routine that could wake an irq thread, and a way to register a handler using that mechanism.

This addresses an orthogonal problem: given some thread demultiplexing the subsidiary IRQs reported to some top-level interrupt, how can that kick in flow handlers chaining to the subsidiary IRQs' handlers?

The answer here is more or less as suggested by Thomas:
using handle_threaded_irq(), a flow handler which doesn't use handle_IRQ_event() since that doesn't much like being called from thread context, at least when lockdep is active.

These two patches:

- add handle_threaded_irq() flow handler;
- kick it in for some twl4030 code

Tested on 2.6.29-rc8 code, both with and without the v2 irqthread patches.