[lkml]   [2006]   [Oct]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH, RAW] IRQ: Maintain irq number globally rather than passing to IRQ handlers
    On 10/6/06, Linus Torvalds <> wrote:

    > In contrast, the irq argument itself is really no different from the
    > cookie we pass in on registration - it's just passing it back to the
    > driver that requested the thing. So unlike "regs", there's not really
    > anything strange about it, and there's nothing really "wrong" with having
    > it there.
    > So I'm not at all as convinced about this one.

    But drivers rarely care about exact IRQ that caused their interrupt
    routines to be called. I looked at some of them and they normally use
    it just to print warnings which is not critical (and data can still be
    retrieved form elsewhere). And without it the only argument can very
    nicely be passed via a register (if regparm is allowed).

    Drivers that truly need to know IRQ can have it added to dev_id cookie
    and use separate dev_ids.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2006-10-06 18:25    [W:0.019 / U:17.608 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site