diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2017-05-24 14:04:41 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2017-05-26 07:04:09 -0400 |
commit | 702644ec1cab10ffefcebb4060d4da46d4ef2c7f (patch) | |
tree | 4aa816b6e008b3cfee2cd08a0129ace8baa837ab | |
parent | fc152d22d6e9fac95a9a990e6c29510bdf1b9425 (diff) |
x86/timers: Move simple_udelay_calibration past init_hypervisor_platform
This ensures that adjustments to x86_platform done by the hypervisor
setup is already respected by this simple calibration.
The current user of this, introduced by 1b5aeebf3a92 ("x86/earlyprintk:
Add support for earlyprintk via USB3 debug port"), comes much later
into play.
Fixes: dd759d93f4dd ("x86/timers: Add simple udelay calibration")
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: http://lkml.kernel.org/r/5e89fe60-aab3-2c1c-aba8-32f8ad376189@siemens.com
-rw-r--r-- | arch/x86/kernel/setup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index 0b4d3c686b1e..f81823695014 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c | |||
@@ -980,8 +980,6 @@ void __init setup_arch(char **cmdline_p) | |||
980 | */ | 980 | */ |
981 | x86_configure_nx(); | 981 | x86_configure_nx(); |
982 | 982 | ||
983 | simple_udelay_calibration(); | ||
984 | |||
985 | parse_early_param(); | 983 | parse_early_param(); |
986 | 984 | ||
987 | #ifdef CONFIG_MEMORY_HOTPLUG | 985 | #ifdef CONFIG_MEMORY_HOTPLUG |
@@ -1041,6 +1039,8 @@ void __init setup_arch(char **cmdline_p) | |||
1041 | */ | 1039 | */ |
1042 | init_hypervisor_platform(); | 1040 | init_hypervisor_platform(); |
1043 | 1041 | ||
1042 | simple_udelay_calibration(); | ||
1043 | |||
1044 | x86_init.resources.probe_roms(); | 1044 | x86_init.resources.probe_roms(); |
1045 | 1045 | ||
1046 | /* after parse_early_param, so could debug it */ | 1046 | /* after parse_early_param, so could debug it */ |