login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
May
»
26
Re: [PATCH] arch/tile: new multi-core architecture for Linux
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Arnd Bergmann
Subject:
Re: [PATCH] arch/tile: new multi-core architecture for Linux
Date: Wednesday, May 26, 2010 - 10:09 am
On Wednesday 26 May 2010 18:22:33 Chris Metcalf wrote:
quoted text
> On 5/25/2010 4:12 PM, Thomas Gleixner wrote: > > +unsigned long long sched_clock(void) > > +{ > > + u64 cycles; > > + u32 cyc_hi, cyc_lo; > > + > > + if (unlikely(cyc2ns_mult == 0)) > > + setup_clock(); > > > > Please initialize stuff before it is called the first time and not > > at some arbitrary point conditionally in a hotpath. > > > > Looking more closely at this, the reason for this lazy initialization > was that sched_clock() can be called from lockdep_init(), which runs way > before any tasteful architecture-specific initialization can happen. > Perhaps the correct model is that during the early stages of boot, we > are happy to shift by zero, multiply by zero, and claim the time is zero :-)
Yes, that is what other architectures do. The time remains zero during early boot. setup_arch is probably a good place to start the clock. Arnd --
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] arch/tile: new multi-core architecture for Linux
, Chris Metcalf
, (Wed May 19, 10:43 pm)
Re: [PATCH] arch/tile: new multi-core architecture for Linux
, Barry Song
, (Thu May 20, 1:04 am)
Re: [PATCH] arch/tile: new multi-core architecture for Linux
, Linus Torvalds
, (Thu May 20, 7:32 am)
Re: [PATCH] arch/tile: new multi-core architecture for Linux
, Chris Metcalf
, (Thu May 20, 12:10 pm)
[PATCH] generic: make lowmem_page_address() use PFN_PHYS() ...
, Chris Metcalf
, (Thu May 20, 12:12 pm)
Re: [PATCH] arch/tile: new multi-core architecture for Linux
, Barry Song
, (Thu May 20, 9:52 pm)
Re: [PATCH] arch/tile: new multi-core architecture for Linux
, Chris Metcalf
, (Fri May 21, 8:13 am)
Re: [PATCH] arch/tile: new multi-core architecture for Linux
, Chris Metcalf
, (Fri May 21, 9:05 pm)
Re: [PATCH] arch/tile: new multi-core architecture for Linux
, Arnd Bergmann
, (Sun May 23, 3:08 pm)
Re: [PATCH] arch/tile: new multi-core architecture for Linux
, Chris Metcalf
, (Mon May 24, 8:29 am)
Re: [PATCH] arch/tile: new multi-core architecture for Linux
, Arnd Bergmann
, (Mon May 24, 11:53 am)
Re: [PATCH] arch/tile: new multi-core architecture for Linux
, Sam Ravnborg
, (Mon May 24, 1:22 pm)
Re: [PATCH] arch/tile: new multi-core architecture for Linux
, Chris Metcalf
, (Mon May 24, 2:29 pm)
Re: [PATCH] arch/tile: new multi-core architecture for Linux
, Chris Metcalf
, (Mon May 24, 2:30 pm)
Re: [PATCH] arch/tile: new multi-core architecture for Linux
, Sam Ravnborg
, (Mon May 24, 10:02 pm)
Re: [PATCH] arch/tile: new multi-core architecture for Linux
, Chris Metcalf
, (Tue May 25, 6:54 am)
Re: [PATCH] arch/tile: new multi-core architecture for Linux
, Arnd Bergmann
, (Tue May 25, 8:03 am)
Re: [PATCH] arch/tile: new multi-core architecture for Linux
, Chris Metcalf
, (Tue May 25, 8:13 am)
Re: [PATCH] arch/tile: new multi-core architecture for Linux
, Arnd Bergmann
, (Tue May 25, 8:30 am)
Re: [PATCH] arch/tile: new multi-core architecture for Linux
, Thomas Gleixner
, (Tue May 25, 1:12 pm)
Re: [PATCH] arch/tile: new multi-core architecture for Linux
, Arnd Bergmann
, (Tue May 25, 2:45 pm)
Re: [PATCH] arch/tile: new multi-core architecture for Linux
, Chris Metcalf
, (Tue May 25, 6:57 pm)
Re: [PATCH] arch/tile: new multi-core architecture for Linux
, Paul Mundt
, (Tue May 25, 10:02 pm)
Re: [PATCH] arch/tile: new multi-core architecture for Linux
, Chris Metcalf
, (Wed May 26, 9:22 am)
Re: [PATCH] arch/tile: new multi-core architecture for Linux
, Arnd Bergmann
, (Wed May 26, 10:09 am)
Re: [PATCH] arch/tile: new multi-core architecture for Linux
, Chris Metcalf
, (Wed May 26, 4:05 pm)
Re: [PATCH] arch/tile: new multi-core architecture for Linux
, Chris Metcalf
, (Wed May 26, 5:58 pm)
Re: [PATCH] arch/tile: new multi-core architecture for Linux
, Arnd Bergmann
, (Thu May 27, 1:41 am)
Re: [PATCH] arch/tile: new multi-core architecture for Linux
, Chris Metcalf
, (Thu May 27, 6:30 am)
Re: [PATCH] arch/tile: new multi-core architecture for Linux
, Geert Uytterhoeven
, (Thu May 27, 6:41 am)
Re: [PATCH] arch/tile: new multi-core architecture for Linux
, Paul Mundt
, (Thu May 27, 6:48 am)
Re: [PATCH] arch/tile: new multi-core architecture for Linux
, Arnd Bergmann
, (Thu May 27, 7:11 am)
Re: [PATCH] arch/tile: new multi-core architecture for Linux
, Chris Metcalf
, (Thu May 27, 7:35 am)
RE: [PATCH] arch/tile: new multi-core architecture for Linux
, Marc Gauthier
, (Thu May 27, 7:52 am)
Re: [PATCH] arch/tile: new multi-core architecture for Linux
, Arnd Bergmann
, (Thu May 27, 8:02 am)
Re: [PATCH] arch/tile: new multi-core architecture for Linux
, Chris Metcalf
, (Thu May 27, 8:03 am)
Re: [PATCH] arch/tile: new multi-core architecture for Linux
, Chris Metcalf
, (Thu May 27, 8:04 am)
Re: [PATCH] arch/tile: new multi-core architecture for Linux
, Arnd Bergmann
, (Thu May 27, 8:20 am)
Re: [PATCH] arch/tile: new multi-core architecture for Linux
, Jamie Lokier
, (Thu May 27, 1:34 pm)
Re: [PATCH] arch/tile: new multi-core architecture for Linux
, Arnd Bergmann
, (Thu May 27, 1:53 pm)
Re: [PATCH] arch/tile: new multi-core architecture for Linux
, Chris Metcalf
, (Fri May 28, 9:45 am)
Re: [PATCH] arch/tile: new multi-core architecture for Linux
, Arnd Bergmann
, (Fri May 28, 10:16 am)
Re: [PATCH] arch/tile: new multi-core architecture for Linux
, Chris Metcalf
, (Fri May 28, 10:28 am)
Re: [PATCH] arch/tile: new multi-core architecture for Linux
, Chris Metcalf
, (Fri May 28, 10:58 am)
[PATCH 1/8] Fix up the "generic" unistd.h ABI to be more u ...
, Chris Metcalf
, (Fri May 28, 8:01 pm)
[PATCH 2/8] arch/tile: infrastructure and configuration-re ...
, Chris Metcalf
, (Fri May 28, 8:09 pm)
[PATCH 3/8] arch/tile: header files for the Tile architecture.
, Chris Metcalf
, (Fri May 28, 8:10 pm)
[PATCH 4/8] arch/tile: core kernel/ code.
, Chris Metcalf
, (Fri May 28, 8:10 pm)
[PATCH 5/8] arch/tile: the kernel/tile-desc_32.c file.
, Chris Metcalf
, (Fri May 28, 8:11 pm)
[PATCH 6/8] arch/tile: the mm/ directory.
, Chris Metcalf
, (Fri May 28, 8:13 pm)
[PATCH 7/8] arch/tile: lib/ directory.
, Chris Metcalf
, (Fri May 28, 8:16 pm)
[PATCH 8/8] arch/tile: hypervisor console driver.
, Chris Metcalf
, (Fri May 28, 8:17 pm)
Re: [PATCH 0/8] revised patch for arch/tile/ support
, Chris Metcalf
, (Fri May 28, 8:20 pm)
[PATCH 0/8] revised patch for arch/tile/ support
, Chris Metcalf
, (Fri May 28, 8:20 pm)
Re: [PATCH 0/8] revised patch for arch/tile/ support
, Arnd Bergmann
, (Sat May 29, 4:29 am)
Re: [PATCH 3/8] arch/tile: header files for the Tile archi ...
, FUJITA Tomonori
, (Sun May 30, 7:58 pm)
Re: [PATCH 4/8] arch/tile: core kernel/ code.
, FUJITA Tomonori
, (Sun May 30, 7:58 pm)
Re: [PATCH 2/8] arch/tile: infrastructure and configuratio ...
, Paul Mundt
, (Mon May 31, 12:47 am)
Re: [PATCH 2/8] arch/tile: infrastructure and configuratio ...
, Chris Metcalf
, (Thu Jun 3, 10:54 am)
Re: [PATCH 0/8] revised patch for arch/tile/ support
, Arnd Bergmann
, (Thu Jun 3, 1:40 pm)
[PATCH] arch/tile: respond to reviews of the second code s ...
, Chris Metcalf
, (Thu Jun 3, 2:32 pm)
Re: [PATCH 0/8] revised patch for arch/tile/ support
, Chris Metcalf
, (Thu Jun 3, 2:48 pm)
Re: [PATCH] arch/tile: respond to reviews of the second co ...
, Paul Mundt
, (Thu Jun 3, 5:50 pm)
Re: [PATCH] arch/tile: respond to reviews of the second co ...
, FUJITA Tomonori
, (Thu Jun 3, 6:31 pm)
Re: [PATCH 0/8] revised patch for arch/tile/ support
, Chris Metcalf
, (Fri Jun 4, 2:32 pm)
Re: [PATCH 0/8] revised patch for arch/tile/ support
, Stephen Rothwell
, (Sat Jun 5, 5:56 am)
Re: [PATCH 0/8] revised patch for arch/tile/ support
, Chris Metcalf
, (Sat Jun 5, 6:30 am)
Re: [PATCH 0/8] revised patch for arch/tile/ support
, Stephen Rothwell
, (Sat Jun 5, 7:10 am)
Re: [PATCH] arch/tile: respond to reviews of the second co ...
, FUJITA Tomonori
, (Sun Jun 6, 10:25 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Og dreams of kernels
Jens Axboe
[PATCH 31/33] Fusion: sg chaining support
Arnd Bergmann
Re: finding your own dead "CONFIG_" variables
Mark Brown
[PATCH 2/2] Subject: natsemi: Allow users to disable workaround for DspCfg reset
Tony Breeds
[LGUEST] Look in object dir for .config
git
:
Brian Downing
Re: Git in a Nutshell guide
John Benes
Re: master has some toys
Matthias Lederhofer
[PATCH 4/7] introduce GIT_WORK_TREE to specify the work tree
Alexander Sulfrian
[RFC/PATCH] RE: git calls SSH_ASKPASS even if DISPLAY is not set
Junio C Hamano
Re: Rss produced by git is not valid xml?
git-commits-head
:
Linux Kernel Mailing List
iSeries: fix section mismatch in iseries_veth
Linux Kernel Mailing List
ixbge: remove TX lock and redo TX accounting.
Linux Kernel Mailing List
ixgbe: fix several count