aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/xen
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2009-08-19 09:37:03 -0400
committerThomas Gleixner <tglx@linutronix.de>2009-08-31 03:35:46 -0400
commit845b3944bbdf9e9247849bf037f27ff3a3f26d87 (patch)
treeb14b40b5ba650996c646ed760cfa4b3283e04953 /arch/x86/xen
parent736decac643e8982655e22ac7f0e5e61c5b7f9bd (diff)
x86: Add timer_init to x86_init_ops
The timer init code is convoluted with several quirks and the paravirt timer chooser. Figuring out which code path is actually taken is not for the faint hearted. Move the numaq TSC quirk to tsc_pre_init x86_init_ops function and replace the paravirt time chooser and the remaining x86 quirk with a simple x86_init_ops function. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/xen')
-rw-r--r--arch/x86/xen/enlighten.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
index 14e597e0c160..84826b842b54 100644
--- a/arch/x86/xen/enlighten.c
+++ b/arch/x86/xen/enlighten.c
@@ -842,8 +842,6 @@ static const struct pv_init_ops xen_init_ops __initdata = {
842}; 842};
843 843
844static const struct pv_time_ops xen_time_ops __initdata = { 844static const struct pv_time_ops xen_time_ops __initdata = {
845 .time_init = xen_time_init,
846
847 .set_wallclock = xen_set_wallclock, 845 .set_wallclock = xen_set_wallclock,
848 .get_wallclock = xen_get_wallclock, 846 .get_wallclock = xen_get_wallclock,
849 .get_tsc_khz = xen_tsc_khz, 847 .get_tsc_khz = xen_tsc_khz,
@@ -977,6 +975,8 @@ asmlinkage void __init xen_start_kernel(void)
977 x86_init.resources.memory_setup = xen_memory_setup; 975 x86_init.resources.memory_setup = xen_memory_setup;
978 x86_init.oem.arch_setup = xen_arch_setup; 976 x86_init.oem.arch_setup = xen_arch_setup;
979 x86_init.oem.banner = xen_banner; 977 x86_init.oem.banner = xen_banner;
978
979 x86_init.timers.timer_init = xen_time_init;
980 x86_init.timers.setup_percpu_clockev = x86_init_noop; 980 x86_init.timers.setup_percpu_clockev = x86_init_noop;
981 x86_cpuinit.setup_percpu_clockev = x86_init_noop; 981 x86_cpuinit.setup_percpu_clockev = x86_init_noop;
982 982