login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
March
»
22
Re: [patch 3/3] genirq: introduce IRQF_ALLOW_NESTED flag for request_irq()
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Marc Zyngier
Subject:
Re: [patch 3/3] genirq: introduce IRQF_ALLOW_NESTED flag for request_irq()
Date: Sunday, March 21, 2010 - 11:03 pm
On Tue, 16 Mar 2010 09:36:59 +0100 Marc Zyngier <maz@misterjones.org> wrote:
quoted text
> On Sat, 13 Mar 2010 20:56:19 +0100 (CET), Thomas Gleixner > <tglx@linutronix.de> wrote: > > Hi Thomas, > > > In general I have no objections, but one thing bothers me. We have no > > way to let a driver know whether it runs in a nested threaded context > > or in hard irq context. There might be (future) drivers which would be > > happy to know that to apply context dependent optimizations etc. > > > > What about a new function which solves your problem and returns that > > information ? Something along the line: > > > > int request_any_context_irq(....) > > { > > ... > > if (desc->status & IRQ_NESTED_THREAD) { > > ret = request_threaded_irq(); > > if (!ret) > > ret = IRQ_IS_NESTED; > > > > } else { > > ..... > > ret = IRQ_IS_NONTHREADED; > > else > > ret = IRQ_IS_THREADED; > > > > } > > ... > > return ret; > > } > > > > You get the idea, right ? > > > > It's a bit more code, but less magic and more flexible for further use > > cases. > > What about the attached (sorry, webmail crap) patch? I deliberately left > IS_THREADED out of the picture, as I have the feeling that the caller has > to know if it really wants a threaded handler, and I couldn't see a way to > guess its intent. > > Please note that this patch has only been compile-tested, as I'm traveling > for the rest of the week and don't have access to my boards. > > Thanks, > > M.
Any comment on this? Thanks, M. -- I'm the slime oozin' out from your TV set... --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
Re: [patch 3/3] genirq: introduce IRQF_ALLOW_NESTED flag f ...
, Thomas Gleixner
, (Sat Mar 13, 12:56 pm)
Re: [patch 3/3] genirq: introduce IRQF_ALLOW_NESTED flag f ...
, Marc Zyngier
, (Tue Mar 16, 1:36 am)
Re: [patch 3/3] genirq: introduce IRQF_ALLOW_NESTED flag f ...
, Marc Zyngier
, (Sun Mar 21, 11:03 pm)
Re: [patch 3/3] genirq: introduce IRQF_ALLOW_NESTED flag f ...
, Thomas Gleixner
, (Mon Mar 22, 1:17 am)
Re: [patch 3/3] genirq: introduce IRQF_ALLOW_NESTED flag f ...
, Trilok Soni
, (Sat Apr 10, 2:48 pm)
[tip:irq/core] genirq: Introduce request_any_context_irq()
, tip-bot for Marc Zyngier
, (Tue Apr 13, 12:33 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ken Chen
[patch] sched: fix inconsistency when redistribute per-cpu tg->cfs_rq shares.
Hugh Dickins
Re: Linux 2.6.26-rc1 - pgtable_32.c:178 pmd_bad
Bernhard Beck
[PATCH 001/001] usb-serial: Add ThinkOptics WavIT
Oleg Nesterov
Re: [PATCH 4/5] don't panic if /sbin/init exits or killed
Greg KH
[patch 07/21] rtc-pcf8563: detect polarity of century bit automatically
git
:
Jonathan del Strother
Re: [PATCH] Fixing path quoting issues
Gerrit Pape
[PATCH] fix skipping merge-order test with NO_OPENSSL=1.
Linus Torvalds
Re: Implementing branch attributes in git config
Johannes Schindelin
Re: Trying to use git-filter-branch to compress history by removing large, obsolet...
Gerrit Pape
[PATCH] hooks--update: fix test for properly set up project description file
linux-netdev
:
David Miller
Re: [PATCH 04/15] tg3: Preserve LAA when device control is released
Jean-Louis Dupond
Re: tg3 driver not advertising 1000mbit
Sven Wegener
[PATCH] ipvs: Add missing locking during connection table hashing and unhashing
David Miller
Re: [PATCH] qlcnic: dont assume NET_IP_ALIGN is 2
Stephen Hemminger
[PATCH 2/2] sky2: fix transmit state on resume
git-commits-head
:
Linux Kernel Mailing List
[SCSI] scsi ioctl: fix kernel-doc warning
Linux Kernel Mailing List
ALSA: HDA - Correct trivial typos in comments.
Linux Kernel Mailing List
i2c-viapro: Add support for SMBus Process Call transactions
Linux Kernel Mailing List
i2c: Documentation: upgrading clients HOWTO
Linux Kernel Mailing List
[PATCH] fix sysctl_nr_open bugs
openbsd-misc
:
Die Gestalt
Re: How to re-build openssl with SHA1 support?
Edwin Eyan Moragas
Re: managing routes for multiple PPPoE connections
Brian Candler
Re: OBSD's perspective on SELinux
Jonathan Schleifer
Why is getaddrinfo breaking POSIX?
Predrag Punosevac
Re: Kernel developers guide/tutorial
Colocation donated by:
Syndicate