login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
19
Re: [PATCH 2/9] irq-remove: arch non-trivial
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Jeremy Fitzhardinge <jeremy@...>
To: Jeff Garzik <jeff@...>
Cc: LKML <linux-kernel@...>, Eric Biederman <ebiederm@...>
Subject:
Re: [PATCH 2/9] irq-remove: arch non-trivial
Date: Friday, October 19, 2007 - 12:54 pm
Jeff Garzik wrote:
quoted text
> commit 8d45690dd90b18daaa21b981ab20caf393220bf0 > Author: Jeff Garzik <jeff@garzik.org> > Date: Fri Oct 19 00:46:23 2007 -0400 > > [IRQ ARG REMOVAL] various non-trivial arch updates > > arch/x86/kernel/vm86_32.c | 3 ++- > include/asm-x86/irq_regs_32.h | 25 +++++++++++++++++++++++++ > 2 files changed, 27 insertions(+), 1 deletion(-) > > 8d45690dd90b18daaa21b981ab20caf393220bf0 > diff --git a/arch/x86/kernel/vm86_32.c b/arch/x86/kernel/vm86_32.c > index 157e4be..18aae9e 100644 > --- a/arch/x86/kernel/vm86_32.c > +++ b/arch/x86/kernel/vm86_32.c > @@ -739,10 +739,11 @@ static int irqbits; > | (1 << SIGUSR1) | (1 << SIGUSR2) | (1 << SIGIO) | (1 << SIGURG) \ > | (1 << SIGUNUSED) ) > > -static irqreturn_t irq_handler(int intno, void *dev_id) > +static irqreturn_t irq_handler(void *dev_id) > { > int irq_bit; > unsigned long flags; > + unsigned int intno = get_irqfunc_irq(); > > spin_lock_irqsave(&irqbits_lock, flags); > irq_bit = 1 << intno; > diff --git a/include/asm-x86/irq_regs_32.h b/include/asm-x86/irq_regs_32.h > index 3368b20..68a531d 100644 > --- a/include/asm-x86/irq_regs_32.h > +++ b/include/asm-x86/irq_regs_32.h > @@ -26,4 +26,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; >
x86_write_percpu(__irqfunc_irqs, new_irq) would be slightly more efficient here. Any why the pointer anyway? J -
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
:
James Bottomley
Breakage caused by unreviewed patch in x86 tree
Andrew Morton
Re: POHMELFS high performance network filesystem. Transactions, failover, performa...
Randy Dunlap
Re: 2.6.25-rc5-mm1 (paravirt/vsmp/no PCI)
Arnd Hannemann
2.6.24-rc8 hangs at mfgpt-timer
linux-activists
:
Theodore Ts'o
Re: SVGA-alphanum. modes
Joseph R. Pannon
More install questions
Paul Richards
Header files
Les Andrzejewski
X386/WD90C31/SUMSUNG SYNC MASTER 4
git
:
linux-netdev
:
David Miller
Re: [BUG] New Kernel Bugs
David Miller
Re: iptables very slow after commit784544739a25c30637397ace5489eeb6e15d7d49
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Colocation donated by:
Who's online
There are currently
6 users
and
807 guests
online.
Online users
johnfrems
truthaboutabsf
johnfrems
masiasentty
sergiomanelli
decoracionfies
Syndicate