login
Login
/
Register
Search
Header Space
Forums
News
Jobs
Blogs
Features
Man Pages
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
19
Re: [PATCH 2/9] irq-remove: arch non-trivial
view
thread
Score:
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
Mail archive search
Enter your search terms.
all mailing lists
alsa-devel
dragonflybsd-bugs
dragonflybsd-commit
dragonflybsd-docs
dragonflybsd-kernel
dragonflybsd-submit
dragonflybsd-user
freebsd-announce
freebsd-bugs
freebsd-chat
freebsd-cluster
freebsd-current
freebsd-drivers
freebsd-embeded
freebsd-fs
freebsd-hackers
freebsd-hardware
freebsd-mobile
freebsd-net
freebsd-performance
freebsd-pf
freebsd-security
freebsd-security-notifications
freebsd-threads
git
git-commits-head
linux-activists
linux-arm
linux-ath5k-devel
linux-btrfs
linux-c-programming
linux-driver-devel
linux-ext4
linux-fsdevel
linux-ia64
linux-input
linux-kernel
linux-kernel-janitors
linux-kernel-mentors
linux-kernel-newbies
linux-kvm
linux-net
linux-netdev
linux-newbie
linux-nfs
linux-raid
linux-scsi
linux-security-module
linux-sparse
linux-usb
linux-usb-devel
madwifi-devel
netbsd-announce
netbsd-tech-kern
openbsd-announce
openbsd-bugs
openbsd-ipv6
openbsd-misc
openbsd-security-announce
openbsd-smp
openbsd-source-changes
openbsd-tech
openfabrics-general
openmoko-community
openmoko-devel
openmoko-kernel
reiserfs-devel
tux3
ucarp
Optionally limit your search to a specific mailing list.
advanced
Popular discussions
linux-kernel
:
Bart Van Assche
Integration of SCST in the mainstream Linux kernel
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Andrew Morton
Re: CFD: linux-wanking@vger.kernel.org (was [PATCH] Standard indentation of argume...
Linus Torvalds
Linux 2.6.27-rc8
git
:
Junio C Hamano
Re: [PATCH] Teach remote machinery about remotes.default config variable
Ingo Molnar
git-rerere observations and feature suggestions
Mike
Re: I don't want the .git directory next to my code.
Stephen Hemminger
git pull for update of netdev fails.
openbsd-misc
:
Leon Dippenaar
New tcp stack attack
GVG GVG
ssh_exchange_identification: Connection closed by remote host
Daniel Ouellet
identifying sparse files and get ride of them trick available?
Shohrukh Shoyoqubov
Re: Site-to-site IPSec VPN between OpenBSD and Cisco PIX 515E
linux-netdev
:
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Patrick McHardy
Re: Not understand some in htb_do_events function
David Miller
[GIT]: Networking
David Miller
Re: xfrm_state locking regression...
Latest forum posts
Add ext2 inode field
7 hours ago
Linux kernel
the kernel how to power off the machine
16 hours ago
Linux kernel
struct gendisk via request_queue
19 hours ago
Linux kernel
usb mic not detected
22 hours ago
Applications and Utilities
page initialization during kernel initialization
1 day ago
Linux kernel
Read Transport Layer Data form network packets (tcp/ip)
2 days ago
Linux kernel
Getting blinking screen in Fedora 9
2 days ago
Linux general
Problem with kernel + libata
3 days ago
Linux kernel
How to detect usb device insertioin and removal event ?
3 days ago
Linux general
toshiba m30x-129 herbinaiton problem
3 days ago
Hardware
Show all forums...
Recent Tags
-rc8
Linux
Intel
bugs
2.6.27-rc8
Linus Torvalds
-rc
quote
2.6.27
more tags
Colocation donated by:
Who's online
There are currently
2 users
and
898 guests
online.
Online users
kingneutron
strcmp
Syndicate
speck-geostationary