]> xenbits.xensource.com Git - xen.git/commit
x86/APIC: no need for timer calibration when using TDT
authorJan Beulich <jbeulich@suse.com>
Mon, 24 Jan 2022 07:38:55 +0000 (08:38 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 24 Jan 2022 07:38:55 +0000 (08:38 +0100)
commit0731a56c7c72fc117b69982e002954645fc3685b
treec525d90b2cd987af598f8025978613e74dd4c8fd
parentfe9be76d880b1d43b9dca471f45af3fd380ecb00
x86/APIC: no need for timer calibration when using TDT

The only global effect of calibrate_APIC_clock() is the setting of
"bus_scale"; the final __setup_APIC_LVTT(0) is (at best) redundant with
the immediately following setup_APIC_timer() invocation. Yet "bus_scale"
isn't used when using TDT. Avoid wasting 100ms for calibration in this
case.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/apic.c