login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
May
»
11
Re: [PATCH 6/8] x86/platform: add a wallclock_init func to x86_platforms ops
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Thomas Gleixner
Subject:
Re: [PATCH 6/8] x86/platform: add a wallclock_init func to x86_platforms ops
Date: Tuesday, May 11, 2010 - 7:42 am
On Fri, 7 May 2010, Jacob Pan wrote:
quoted text
> From: Feng Tang <feng.tang@intel.com> > > Some wall clock devices use MMIO based HW register, this new function will > give them a chance to do some initialization work before their get/set_time > service get called. > > Signed-off-by: Feng Tang <feng.tang@intel.com> > Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com> > --- > arch/x86/include/asm/x86_init.h | 2 ++ > arch/x86/kernel/setup.c | 2 ++ > arch/x86/kernel/x86_init.c | 2 ++ > 3 files changed, 6 insertions(+), 0 deletions(-) > > diff --git a/arch/x86/include/asm/x86_init.h b/arch/x86/include/asm/x86_init.h > index 519b543..be027a8 100644 > --- a/arch/x86/include/asm/x86_init.h > +++ b/arch/x86/include/asm/x86_init.h > @@ -138,6 +138,7 @@ struct x86_cpuinit_ops { > /** > * struct x86_platform_ops - platform specific runtime functions > * @calibrate_tsc: calibrate TSC > + * @wallclock_init: init the wallclock device
wallclock_init is an init function and should be in x86_init.timers
quoted text
> * @get_wallclock: get time from HW clock like RTC etc. > * @set_wallclock: set time back to HW clock > * @is_untracked_pat_range exclude from PAT logic > @@ -145,6 +146,7 @@ struct x86_cpuinit_ops { > */ > struct x86_platform_ops { > unsigned long (*calibrate_tsc)(void); > + void (*wallclock_init)(void); > unsigned long (*get_wallclock)(void); > int (*set_wallclock)(unsigned long nowtime); > void (*iommu_shutdown)(void); > diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c > index c4851ef..d001d8c 100644 > --- a/arch/x86/kernel/setup.c > +++ b/arch/x86/kernel/setup.c > @@ -1050,6 +1050,8 @@ void __init setup_arch(char **cmdline_p) > #endif > x86_init.oem.banner(); > > + x86_platform.wallclock_init(); > + > mcheck_init(); > } > > diff --git a/arch/x86/kernel/x86_init.c b/arch/x86/kernel/x86_init.c > index 61a1e8c..ee00d76 100644 > --- a/arch/x86/kernel/x86_init.c > +++ b/arch/x86/kernel/x86_init.c > @@ -24,6 +24,7 @@ void __init x86_init_uint_noop(unsigned int unused) { } > void __init x86_init_pgd_noop(pgd_t *unused) { } > int __init iommu_init_noop(void) { return 0; } > void iommu_shutdown_noop(void) { } > +void wallclock_init_noop(void) { }
No need for that. Thanks, tglx --
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/8] Moorestown changes in arch/x86 for 35 merge window
, Jacob Pan
, (Fri May 7, 10:41 am)
[PATCH 1/8] x86: avoid check hlt if no timer interrupts
, Jacob Pan
, (Fri May 7, 10:41 am)
[PATCH 2/8] x86/mrst/pci: return 0 for non-present pci bars
, Jacob Pan
, (Fri May 7, 10:41 am)
[PATCH 3/8] x86/apic: allow use of lapic timer early calib ...
, Jacob Pan
, (Fri May 7, 10:41 am)
[PATCH 4/8] x86/mrst: change clock selection logic to supp ...
, Jacob Pan
, (Fri May 7, 10:41 am)
[PATCH 5/8] x86/apbt: support more timer configurations on ...
, Jacob Pan
, (Fri May 7, 10:41 am)
[PATCH 6/8] x86/platform: add a wallclock_init func to x86 ...
, Jacob Pan
, (Fri May 7, 10:41 am)
[PATCH 7/8] x86/mrst: add vrtc driver which serves as a wa ...
, Jacob Pan
, (Fri May 7, 10:41 am)
[PATCH 8/8] x86/mrst: Add nop functions to x86_init mppars ...
, Jacob Pan
, (Fri May 7, 10:41 am)
Re: [PATCH 7/8] x86/mrst: add vrtc driver which serves as ...
, Joe Perches
, (Fri May 7, 11:51 am)
Re: [PATCH 7/8] x86/mrst: add vrtc driver which serves as ...
, Alan Cox
, (Fri May 7, 12:02 pm)
Re: [PATCH 7/8] x86/mrst: add vrtc driver which serves as ...
, Joe Perches
, (Fri May 7, 12:06 pm)
Re: [PATCH 7/8] x86/mrst: add vrtc driver which serves as ...
, H. Peter Anvin
, (Fri May 7, 12:56 pm)
RFD: Should we remove the HLT check? (was Re: [PATCH 1/8] ...
, H. Peter Anvin
, (Fri May 7, 1:32 pm)
Re: RFD: Should we remove the HLT check? (was Re: [PATCH ...
, Arjan van de Ven
, (Fri May 7, 1:33 pm)
Re: RFD: Should we remove the HLT check? (was Re: [PATCH ...
, H. Peter Anvin
, (Fri May 7, 1:36 pm)
Re: RFD: Should we remove the HLT check? (was Re: [PATCH ...
, Linus Torvalds
, (Fri May 7, 1:54 pm)
Re: RFD: Should we remove the HLT check? (was Re: [PATCH ...
, H. Peter Anvin
, (Fri May 7, 2:04 pm)
Re: RFD: Should we remove the HLT check? (was Re: [PATCH ...
, jacob pan
, (Fri May 7, 3:07 pm)
Re: RFD: Should we remove the HLT check? (was Re: [PATCH ...
, Alan Cox
, (Fri May 7, 3:24 pm)
Re: RFD: Should we remove the HLT check? (was Re: [PATCH ...
, H. Peter Anvin
, (Fri May 7, 3:27 pm)
Re: RFD: Should we remove the HLT check? (was Re: [PATCH ...
, Arjan van de Ven
, (Fri May 7, 3:35 pm)
Re: RFD: Should we remove the HLT check? (was Re: [PATCH ...
, Alan Cox
, (Fri May 7, 3:46 pm)
Re: [PATCH 7/8] x86/mrst: add vrtc driver which serves as ...
, Feng Tang
, (Mon May 10, 2:17 am)
Re: [PATCH 7/8] x86/mrst: add vrtc driver which serves as ...
, H. Peter Anvin
, (Mon May 10, 11:22 am)
Re: [PATCH 7/8] x86/mrst: add vrtc driver which serves as ...
, Feng Tang
, (Mon May 10, 7:30 pm)
Re: [PATCH 3/8] x86/apic: allow use of lapic timer early c ...
, Thomas Gleixner
, (Tue May 11, 6:46 am)
Re: [PATCH 4/8] x86/mrst: change clock selection logic to ...
, Thomas Gleixner
, (Tue May 11, 7:36 am)
Re: [PATCH 6/8] x86/platform: add a wallclock_init func to ...
, Thomas Gleixner
, (Tue May 11, 7:42 am)
Re: [PATCH 7/8] x86/mrst: add vrtc driver which serves as ...
, Thomas Gleixner
, (Tue May 11, 7:57 am)
Re: [PATCH 4/8] x86/mrst: change clock selection logic to ...
, Alan Cox
, (Tue May 11, 8:30 am)
Re: [PATCH 4/8] x86/mrst: change clock selection logic to ...
, Thomas Gleixner
, (Tue May 11, 8:50 am)
Re: [PATCH 4/8] x86/mrst: change clock selection logic to ...
, Alan Cox
, (Tue May 11, 9:03 am)
RE: [PATCH 3/8] x86/apic: allow use of lapic timer early c ...
, Pan, Jacob jun
, (Tue May 11, 12:42 pm)
RE: [PATCH 3/8] x86/apic: allow use of lapic timer early c ...
, Thomas Gleixner
, (Tue May 11, 12:50 pm)
RE: [PATCH 3/8] x86/apic: allow use of lapic timer early c ...
, Pan, Jacob jun
, (Tue May 11, 1:46 pm)
Re: [PATCH 3/8] x86/apic: allow use of lapic timer early c ...
, H. Peter Anvin
, (Tue May 11, 1:51 pm)
Re: [PATCH 7/8] x86/mrst: add vrtc driver which serves as ...
, Feng Tang
, (Tue May 11, 7:34 pm)
RE: [PATCH 4/8] x86/mrst: change clock selection logic to ...
, Pan, Jacob jun
, (Thu May 13, 3:16 pm)
Re: [PATCH 4/8] x86/mrst: change clock selection logic to ...
, Du, Alek
, (Sun May 16, 7:14 pm)
Re: [PATCH 4/8] x86/mrst: change clock selection logic to ...
, Du, Alek
, (Sun May 16, 7:27 pm)
Re: [PATCH 7/8] x86/mrst: add vrtc driver which serves as ...
, Thomas Gleixner
, (Mon May 17, 2:15 am)
Re: [PATCH 7/8] x86/mrst: add vrtc driver which serves as ...
, Feng Tang
, (Mon May 17, 11:27 pm)
Re: [PATCH 7/8] x86/mrst: add vrtc driver which serves as ...
, Thomas Gleixner
, (Tue May 18, 12:38 am)
Re: [PATCH 7/8] x86/mrst: add vrtc driver which serves as ...
, john stultz
, (Tue May 18, 1:43 pm)
Re: [PATCH 7/8] x86/mrst: add vrtc driver which serves as ...
, Thomas Gleixner
, (Tue May 18, 2:02 pm)
[PATCH 1/3] timekeeping: moving xtime's init to a later time
, Feng Tang
, (Thu May 20, 7:15 pm)
[PATCH 2/3] x86: unify current 3 similar ways of saving IR ...
, Feng Tang
, (Thu May 20, 7:16 pm)
[PATCH 3/3] x86/mrst: add vrtc driver which serves as a wa ...
, Feng Tang
, (Thu May 20, 7:19 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 041/196] kobject: add kobject_init_and_add function
Lukas Hejtmanek
Re: Another libata error related to OCZ SSD
Greg Kroah-Hartman
[PATCH 023/196] MCP_UCB1200: Convert from class_device to device
Florian Fainelli
Re: System clock runs too fast after 2.6.27 -> 2.6.28.1 upgrade
Christoph Lameter
[patch 1/4] mmu_notifier: Core code
git
:
Johannes Schindelin
Re: [PATCH 1/2] Add strbuf_initf()
John Bito
[EGIT] Push to GitHub caused corruption
Jakub Narebski
Re: [PATCH 0/2] gitweb: patch view
Junio C Hamano
Re: [PATCH] When a remote is added but not fetched, tell the user.
Andy Parkins
Re: [RFC] Submodules in GIT
git-commits-head
:
Linux Kernel Mailing List
ahci: Workaround HW bug for SB600/700 SATA controller PMP support
Linux Kernel Mailing List
V4L/DVB (11086): au0828: rename macro for currently non-function VBI support
Linux Kernel Mailing List
ceph: client types
Linux Kernel Mailing List
ceph: on-wire types
Linux Kernel Mailing List
crypto: chainiv - Use kcrypto_wq instead of keventd_wq
linux-netdev
:
Andrew Morton
Re: [Bugme-new] [Bug 14969] New: b44: WOL does not work in suspended state
Giuseppe CAVALLARO
Re: [PATCH 03/13] stmmac: add the new Header file for stmmac platform data
Taku Izumi
[PATCH 3/3] ixgbe: add registers etc. printout code just before resetting adapters
Eric Dumazet
rps: some comments
Thomas Gleixner
Re: [RFC PATCH 02/12] On Tue, 23 Sep 2008, David Miller wrote:
openbsd-misc
:
Stephan Andreas
problems with login after xlock in OpenBSD release 4.7
pmc
Make A Change. Alcoholism and Drug Addiction Treatment
ropers
Re: what exactly is enc0?
Fuad NAHDI
Re: What does your environment look like?
Matthew Szudzik
Typo on OpenBSD 4.4 CD Set
Colocation donated by:
Syndicate