login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
19
Re: [PATCH 1/9] irq-remove: core
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Eric W. Biederman <ebiederm@...>
To: Jeff Garzik <jeff@...>
Cc: LKML <linux-kernel@...>
Subject:
Re: [PATCH 1/9] irq-remove: core
Date: Friday, October 19, 2007 - 2:04 pm
Jeff Garzik <jeff@garzik.org> writes:
quoted text
> commit 008b5fcf3c1d8456005de26ddd4256b1369225e8 > Author: Jeff Garzik <jeff@garzik.org> > Date: Fri Oct 19 00:45:51 2007 -0400 > > [IRQ ARG REMOVAL] core interrupt delivery infrastructure updates > > include/asm-generic/irq_regs.h | 25 +++++++++++++++++++++++++ > include/linux/interrupt.h | 4 ++-- > kernel/irq/handle.c | 5 +++-- > kernel/irq/manage.c | 4 ++-- > kernel/irq/spurious.c | 3 ++- > lib/irq_regs.c | 5 +++++ > 6 files changed, 39 insertions(+), 7 deletions(-) > > 008b5fcf3c1d8456005de26ddd4256b1369225e8 > diff --git a/include/asm-generic/irq_regs.h b/include/asm-generic/irq_regs.h > index 5ae1d07..1d99ef4 100644 > --- a/include/asm-generic/irq_regs.h > +++ b/include/asm-generic/irq_regs.h > @@ -34,4 +34,29 @@ static inline struct pt_regs *set_irq_regs(struct pt_regs > *new_regs) > return old_regs; > } > > +DECLARE_PER_CPU(unsigned int, __irqfunc_irqs); > + > +static inline unsigned int get_irqfunc_irq(void) > +{ > + return __get_cpu_var(__irqfunc_irqs); > +} > + > +#if 0 > +static inline unsigned int set_irqfunc_irq(unsigned int new_irq) > +{ > + unsigned int old_irq, *pirq = &__get_cpu_var(__irqfunc_irqs); > + > + old_irq = *pirq; > + *pirq = new_irq; > + return old_irq; > +} > +#else > +static inline void set_irqfunc_irq(unsigned int new_irq) > +{ > + int *pirq = &__get_cpu_var(__irqfunc_irqs); > + > + *pirq = new_irq; > +} > +#endif
Please look at handle_IRQ_event. Local irqs are enabled so irq recursion can happen. So not handling old_irq is a big nasty bug. Eric -
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:
[PATCH 0/9] Remove 'irq' argument from all irq handlers
, Jeff Garzik
, (Fri Oct 19, 3:54 am)
Re: [PATCH 0/9] Remove 'irq' argument from all irq handlers
, Greg KH
, (Sat Oct 20, 2:07 am)
Re: [PATCH 0/9] Remove 'irq' argument from all irq handlers
, Mark Gross
, (Fri Oct 19, 2:45 pm)
Re: [PATCH 0/9] Remove 'irq' argument from all irq handlers
, Thomas Gleixner
, (Fri Oct 19, 10:53 am)
Re: [PATCH 0/9] Remove 'irq' argument from all irq handlers
, Eric W. Biederman
, (Fri Oct 19, 2:38 pm)
Re: [PATCH 0/9] Remove 'irq' argument from all irq handlers
, Ingo Molnar
, (Fri Oct 19, 3:07 pm)
Re: [PATCH 0/9] Remove 'irq' argument from all irq handlers
, Eric W. Biederman
, (Fri Oct 19, 3:35 pm)
Re: [PATCH 0/9] Remove 'irq' argument from all irq handlers
, Thomas Gleixner
, (Fri Oct 19, 3:41 pm)
Re: [PATCH 0/9] Remove 'irq' argument from all irq handlers
, Jeff Garzik
, (Fri Oct 19, 3:55 pm)
Re: [PATCH 0/9] Remove 'irq' argument from all irq handlers
, Jeff Garzik
, (Fri Oct 19, 2:57 pm)
Re: [PATCH 0/9] Remove 'irq' argument from all irq handlers
, Jeff Garzik
, (Fri Oct 19, 3:02 pm)
[PATCH 8/9] irq-remove: driver trivial
, Jeff Garzik
, (Fri Oct 19, 3:58 am)
[PATCH 9/9] irq-remove: misc fixes and cleanups
, Jeff Garzik
, (Fri Oct 19, 3:59 am)
[PATCH 5/9] irq-remove: net driver trivial
, Jeff Garzik
, (Fri Oct 19, 3:57 am)
[PATCH 6/9] irq-remove: sound driver trivial
, Jeff Garzik
, (Fri Oct 19, 3:57 am)
[PATCH 7/9] irq-remove: scsi driver trivial
, Jeff Garzik
, (Fri Oct 19, 3:58 am)
RE: [PATCH 7/9] irq-remove: scsi driver trivial
, Salyzyn, Mark
, (Fri Oct 19, 9:00 am)
Re: [PATCH 7/9] irq-remove: scsi driver trivial
, Andrew Morton
, (Fri Oct 26, 5:35 pm)
Re: [PATCH 7/9] irq-remove: scsi driver trivial
, Jeff Garzik
, (Fri Oct 26, 5:47 pm)
Re: [PATCH 7/9] irq-remove: scsi driver trivial
, Arjan van de Ven
, (Fri Oct 26, 7:50 pm)
Re: [PATCH 7/9] irq-remove: scsi driver trivial
, Jeff Garzik
, (Fri Oct 26, 8:12 pm)
Re: [PATCH 7/9] irq-remove: scsi driver trivial
, Arjan van de Ven
, (Fri Oct 26, 8:16 pm)
Re: [PATCH 7/9] irq-remove: scsi driver trivial
, Jeff Garzik
, (Fri Oct 26, 8:37 pm)
Re: [PATCH 7/9] irq-remove: scsi driver trivial
, Arjan van de Ven
, (Sat Oct 27, 1:31 am)
Re: [PATCH 7/9] irq-remove: scsi driver trivial
, Jeff Garzik
, (Sat Oct 27, 3:06 am)
Re: [PATCH 7/9] irq-remove: scsi driver trivial
, Eric W. Biederman
, (Sat Oct 27, 3:46 am)
Re: [PATCH 7/9] irq-remove: scsi driver trivial
, Arjan van de Ven
, (Sat Oct 27, 10:17 am)
[PATCH 4/9] irq-remove: driver non-trivial
, Jeff Garzik
, (Fri Oct 19, 3:56 am)
Re: [PATCH 4/9] irq-remove: driver non-trivial
, Eric W. Biederman
, (Fri Oct 19, 2:19 pm)
Re: [PATCH 4/9] irq-remove: driver non-trivial
, Jeff Garzik
, (Fri Oct 19, 2:36 pm)
[PATCH 3/9] irq-remove: arch trivial
, Jeff Garzik
, (Fri Oct 19, 3:56 am)
[PATCH 2/9] irq-remove: arch non-trivial
, Jeff Garzik
, (Fri Oct 19, 3:55 am)
Re: [PATCH 2/9] irq-remove: arch non-trivial
, Eric W. Biederman
, (Fri Oct 19, 1:11 pm)
Re: [PATCH 2/9] irq-remove: arch non-trivial
, Jeff Garzik
, (Fri Oct 19, 1:16 pm)
Re: [PATCH 2/9] irq-remove: arch non-trivial
, Eric W. Biederman
, (Fri Oct 19, 3:38 pm)
Re: [PATCH 2/9] irq-remove: arch non-trivial
, Jeremy Fitzhardinge
, (Fri Oct 19, 12:54 pm)
Re: [PATCH 2/9] irq-remove: arch non-trivial
, Jeff Garzik
, (Fri Oct 19, 1:50 pm)
Re: [PATCH 2/9] irq-remove: arch non-trivial
, Jeff Garzik
, (Fri Oct 19, 1:31 pm)
[PATCH 1/9] irq-remove: core
, Jeff Garzik
, (Fri Oct 19, 3:55 am)
Re: [PATCH 1/9] irq-remove: core
, Eric W. Biederman
, (Fri Oct 19, 2:04 pm)
Re: [PATCH 1/9] irq-remove: core
, Jeff Garzik
, (Fri Oct 19, 2:21 pm)
Re: [PATCH 1/9] irq-remove: core
, Eric W. Biederman
, (Fri Oct 19, 3:50 pm)
Re: [PATCH 1/9] irq-remove: core
, Jeff Garzik
, (Fri Oct 19, 3:58 pm)
Re: [PATCH 1/9] irq-remove: core
, Eric W. Biederman
, (Fri Oct 19, 7:13 pm)
Re: [PATCH 1/9] irq-remove: core
, Jeff Garzik
, (Fri Oct 19, 7:53 pm)
Re: [PATCH 1/9] irq-remove: core
, Jeff Garzik
, (Fri Oct 19, 7:46 pm)
Re: [PATCH 1/9] irq-remove: core
, Eric W. Biederman
, (Fri Oct 19, 1:27 pm)
Re: [PATCH 1/9] irq-remove: core
, Jeff Garzik
, (Fri Oct 19, 1:48 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 002/196] Chinese: rephrase English introduction in HOWTO
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Andrew Morton
Re: -mm merge plans for 2.6.23 -- sys_fallocate
Greg KH
Re: [AppArmor 39/45] AppArmor: Profile loading and manipulation, pathname matching
git
:
linux-netdev
:
Gerrit Renker
[PATCH 03/37] dccp: List management for new feature negotiation
Arjan van de Ven
Re: [GIT]: Networking
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Jarek Poplawski
Re: [BUG] New Kernel Bugs
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
2 users
and
937 guests
online.
Online users
truthaboutabsc
trabajosporiho
Syndicate