login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
April
»
7
Re: [patch 3/3] sched: Use local_irq_save_nmi() in cpu_clock()
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Frederic Weisbecker
Subject:
Re: [patch 3/3] sched: Use local_irq_save_nmi() in cpu_clock()
Date: Wednesday, April 7, 2010 - 4:44 am
On Wed, Apr 07, 2010 at 01:31:34PM +0200, Peter Zijlstra wrote:
quoted text
> On Wed, 2010-04-07 at 13:27 +0200, Frederic Weisbecker wrote: > > On Tue, Apr 06, 2010 at 03:28:10PM +0200, Peter Zijlstra wrote: > > > Since we can call cpu_clock() from NMI context fix up the IRQ > > > disabling to conform to the new rules. > > > > > > Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> > > > --- > > > kernel/sched_clock.c | 4 ++-- > > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > > > Index: linux-2.6/kernel/sched_clock.c > > > =================================================================== > > > --- linux-2.6.orig/kernel/sched_clock.c > > > +++ linux-2.6/kernel/sched_clock.c > > > @@ -241,9 +241,9 @@ unsigned long long cpu_clock(int cpu) > > > unsigned long long clock; > > > unsigned long flags; > > > > > > - local_irq_save(flags); > > > + local_irq_save_nmi(flags); > > > clock = sched_clock_cpu(cpu); > > > - local_irq_restore(flags); > > > + local_irq_restore_nmi(flags); > > > > > > return clock; > > > } > > > > > > That seem to add a small overhead in various places. > > Do we want to make local_irq_save_nmi == local_irq_save > > for archs that have native nmi? > > That is already so, see 1/3.
Ah you're right. --
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/3] IRQ disable vs NMI
, Peter Zijlstra
, (Tue Apr 6, 6:28 am)
[patch 1/3] kernel: local_irq_{save,restore}_nmi()
, Peter Zijlstra
, (Tue Apr 6, 6:28 am)
[patch 2/3] perf: Use local_irq_save_nmi()
, Peter Zijlstra
, (Tue Apr 6, 6:28 am)
[patch 3/3] sched: Use local_irq_save_nmi() in cpu_clock()
, Peter Zijlstra
, (Tue Apr 6, 6:28 am)
[No subject]
, David Miller
, (Tue Apr 6, 10:54 am)
Re: [patch 0/3] IRQ disable vs NMI
, David Miller
, (Tue Apr 6, 4:39 pm)
Re: [patch 1/3] kernel: local_irq_{save,restore}_nmi()
, Steven Rostedt
, (Tue Apr 6, 6:13 pm)
Re: [patch 1/3] kernel: local_irq_{save,restore}_nmi()
, David Miller
, (Tue Apr 6, 6:19 pm)
Re: [patch 1/3] kernel: local_irq_{save,restore}_nmi()
, Steven Rostedt
, (Tue Apr 6, 6:23 pm)
Re: [patch 3/3] sched: Use local_irq_save_nmi() in cpu_clock()
, Frederic Weisbecker
, (Wed Apr 7, 4:27 am)
Re: [patch 3/3] sched: Use local_irq_save_nmi() in cpu_clock()
, Peter Zijlstra
, (Wed Apr 7, 4:31 am)
Re: [patch 3/3] sched: Use local_irq_save_nmi() in cpu_clock()
, Frederic Weisbecker
, (Wed Apr 7, 4:44 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Rusty Russell
Re: 2.6.22-rc3-mm1
Gautham R Shenoy
[PATCH 1/8] Enhance process freezer interface for usage beyond software suspend
Jeffrey V. Merkey
Re: Versioning file system
James Bottomley
Re: [PATCH -mm 1/2] scsi: remove dma_is_consistent usage in 53c700
David Miller
Re: NO_HZ: timer interrupt stuck
git
:
Oliver Kullmann
Re: how to move with history?
Junio C Hamano
Re: [PATCH 2/3] git-add--interactive: remove hunk coalescing
Miles Bader
Re: way to automatically add untracked files?
Harvey Harrison
Re: [SoC RFC] libsvn-fs-git: A git backend for the subversion filesystem
Alex Riesen
Re: git exclude patterns for directory
git-commits-head
:
Linux Kernel Mailing List
V4L/DVB: tm6000: add special usb request to quit i2c tuner transfer
Linux Kernel Mailing List
OMAP: DSS2: SDI driver
Linux Kernel Mailing List
PCI: introduce pci_pcie_cap()
Linux Kernel Mailing List
netfilter: nf_conntrack_sip: add T.38 FAX support
Linux Kernel Mailing List
drivers/acpi: use kasprintf
linux-netdev
:
Timo Teräs
ip xfrm policy semantics
David Miller
Re: [2.6.30-rc3] powerpc: compilation error of mace module
Patrick McHardy
Re: [rfc 02/13] [RFC 02/13] netfilter: nf_conntrack_sip: Add callid parser
webmaster Maintenance
&#32852;&#31995;&#31995;&#32479;&#31649;&#29702;&#21592;
Krzysztof Oledzki
Re: Error: an inet prefix is expected rather than "0/0".
openbsd-misc
:
Ted Bullock
Re: Proliant DL380 G3 cannot get on network
Úlfar M. E. Johnson
installing openbsd in xen
Eric Furman
Re: Defending OpenBSD Performance
Damien Miller
Re: Patching a SSH 'Weakness'
frantisek holop
Re: mount ffs as msdos, system hangs
Colocation donated by:
Syndicate