[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.55.0806042243080.28685@cliff.in.clinika.pl>
Date: Wed, 4 Jun 2008 23:07:52 +0100 (BST)
From: "Maciej W. Rozycki" <macro@...ux-mips.org>
To: Jon Masters <jcm@...hat.com>
cc: Stefan Assmann <sassmann@...e.de>,
"Eric W. Biederman" <ebiederm@...ssion.com>,
Olaf Dabrunz <od@...e.de>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...e.hu>, "H. Peter Anvin" <hpa@...or.com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 0/7] Boot IRQ quirks and rerouting
On Wed, 4 Jun 2008, Jon Masters wrote:
> I disagree. I think it's now actually the *inverse*. It /used/ to be
> harder, because you didn't have a context in which you could do many
> things (so you need to schedule some kind of deferred work), but
> actually, it'll become a lot more attractive with device threads.
Well, I mean it's easier to do all the handling sequentially in the
hardirq context than split the thing and deal with all the communication,
locking, possible races, etc. so people avoid it unless really forced to.
In principle all the interrupt handlers could be split like this except
those really, really tiny ones or where latency is absolutely critical.
Yet it often does not happen.
> The only real caveat is for performance critical cases (the reasons we
> have special softirqs and the like right now) but there will always be
> special cases. Still, I'd like it if writing a Linux interrupt handler
> came down to registering two functions - one lightweight tiny one, and
> one that's just a thread. Much less room for making mistakes.
The two will have to pass some state between each other, might run
concurrently or in parallel, etc. and require some effort to be written
correctly.
Maciej
--
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