Boris Ostrovsky ccb64941f3 x86/timers: Move simple_udelay_calibration() past kvmclock_init()
simple_udelay_calibration() relies on x86_platform's calibration ops.
For KVM these ops are set late in setup_arch() and so
simple_udelay_calibration() ends up using native version.

Besides being possibly incorrect, this significantly increases kernel
boot time. For example, on my laptop executing start_kernel() by a guest
takes ~10 times more than when KVM's ops are used.

Since early_xdbc_setup_hardware() relies on calibration having been
performed move it too.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: baolu.lu@linux.intel.com
Link: https://lkml.kernel.org/r/20170911185111.20636-1-boris.ostrovsky@oracle.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2017-09-25 15:22:45 +02:00
..
2017-09-05 12:45:03 -07:00
2017-08-31 21:34:48 +02:00
2017-04-14 12:08:51 +02:00
2017-09-01 11:04:56 +02:00
2017-07-26 13:18:20 +02:00
2017-08-16 20:40:09 +02:00
2017-07-26 13:18:20 +02:00
2017-07-26 13:18:20 +02:00