diff options
author | Feng Tang <feng.tang@intel.com> | 2009-09-09 22:48:56 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2009-09-16 08:34:50 -0400 |
commit | 7bd867dfb4e0357e06a3211ab2bd0e714110def3 (patch) | |
tree | fb66f4944f655ba594a7ae98f640e2310a389559 /arch/x86/lguest/boot.c | |
parent | 54e2603f1a85b9725aa13518d69148b6e7061aa9 (diff) |
x86: Move get/set_wallclock to x86_platform_ops
get/set_wallclock() have already a set of platform dependent
implementations (default, EFI, paravirt). MRST will add another
variant.
Moving them to platform ops simplifies the existing code and minimizes
the effort to integrate new variants.
Signed-off-by: Feng Tang <feng.tang@intel.com>
LKML-Reference: <new-submission>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/lguest/boot.c')
-rw-r--r-- | arch/x86/lguest/boot.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/lguest/boot.c b/arch/x86/lguest/boot.c index fabe745513d9..4cb7d5d18b8e 100644 --- a/arch/x86/lguest/boot.c +++ b/arch/x86/lguest/boot.c | |||
@@ -1318,13 +1318,11 @@ __init void lguest_init(void) | |||
1318 | set_lguest_basic_apic_ops(); | 1318 | set_lguest_basic_apic_ops(); |
1319 | #endif | 1319 | #endif |
1320 | 1320 | ||
1321 | /* Time operations */ | ||
1322 | pv_time_ops.get_wallclock = lguest_get_wallclock; | ||
1323 | |||
1324 | x86_init.resources.memory_setup = lguest_memory_setup; | 1321 | x86_init.resources.memory_setup = lguest_memory_setup; |
1325 | x86_init.irqs.intr_init = lguest_init_IRQ; | 1322 | x86_init.irqs.intr_init = lguest_init_IRQ; |
1326 | x86_init.timers.timer_init = lguest_time_init; | 1323 | x86_init.timers.timer_init = lguest_time_init; |
1327 | x86_platform.calibrate_tsc = lguest_tsc_khz; | 1324 | x86_platform.calibrate_tsc = lguest_tsc_khz; |
1325 | x86_platform.get_wallclock = lguest_get_wallclock; | ||
1328 | 1326 | ||
1329 | /* | 1327 | /* |
1330 | * Now is a good time to look at the implementations of these functions | 1328 | * Now is a good time to look at the implementations of these functions |