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

From: Linus Torvalds
Date: Mon Feb 02 2009 - 19:16:18 EST




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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/