[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <cabda6421003210031k65e9d195u90fc99888ca7633c@mail.gmail.com>
Date: Sun, 21 Mar 2010 08:31:39 +0100
From: christian pellegrin <chripell@...e.org>
To: Grant Likely <grant.likely@...retlab.ca>
Cc: feng.tang@...el.com, akpm@...ux-foundation.org, greg@...ah.com,
david-b@...bell.net, alan@...rguk.ukuu.org.uk,
spi-devel-general@...ts.sourceforge.net,
linux-serial@...r.kernel.org, Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...e.hu>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 1/3] max3100: added raise_threaded_irq
Hi,
On Fri, Mar 19, 2010 at 6:48 PM, Grant Likely <grant.likely@...retlab.ca> wrote:
> You should cc: Thomas and Ingo and lkml (which I just did) on patches
> to the threaded interrupt code.
>
ok, let me explain the reason for this function. The move from
worqueues to the threaded interrupts was motivated by a reduction of
latency in answering to RX buffer full interrupts. Threaded interrupts
are SCHED_FIFO instead worqueues being SCHED_OTHER. In the case of
MAX31x0 when we transmit a character we could have to receive one
(this is efficient because SPI transfers are quite always
bidirectional). The same routine is used both for tx and rx (an other
things like changing parameters): this makes locking really simple.
With this routine the thread interrupt handler could be the only kind
of deferred work a driver for a simple hardware may ever need.
--
Christian Pellegrin, see http://www.evolware.org/chri/
"Real Programmers don't play tennis, or any other sport which requires
you to change clothes. Mountain climbing is OK, and Real Programmers
wear their climbing boots to work in case a mountain should suddenly
spring up in the middle of the computer room."
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists