Re: PCI PM: Restore standard config registers of all devices early

Linus Torvalds
2009-02-03T00:16:17Z

On Mon, 2 Feb 2009, Linus Torvalds wrote:
>
> IOW, we can easily add a magic flag for registering a timer
> interrupt (in fact, I guess we already have IRQF_TIMER)

Side note: we may have IRQF_TIMER (and some timers even set it), but since
it's not actually _used_ for anything it should come as no surprise that
it's not set by the x86 code, for example (nor by a lot of other
architectures).

But we can already notice system interrupts automatically by them being
registered by "setup_irq()" instead of "request_irq()". And on x86, many
of the really core interrupts aren't actually seen as device interrupts at
all, but are directly taken by the kernel through local apic stuff. So
they wouldn't get disabled anyway (example: local APIC timer interrupts
and the inter-processor IPI).

So it should be pretty easy to do a reasonable job with the information
that we already have available.

Linus