]> xenbits.xensource.com Git - people/pauldu/xen.git/commit
x86/APIC: adjust types and comments in calibrate_APIC_clock()
authorJan Beulich <jbeulich@suse.com>
Mon, 16 Mar 2020 10:26:10 +0000 (11:26 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 16 Mar 2020 10:26:10 +0000 (11:26 +0100)
commit1946c33399ecc8dcad0938c4432b9e394eb78e17
tree80e455976d4b3d0a8c3c7df704fc5325a9cb615a
parentefd09c771ead61fbe34161ae2250d4c77a2dcd36
x86/APIC: adjust types and comments in calibrate_APIC_clock()

First and foremost the comment talking about potential underflow being
taken care of by using signed long type variables was true only on
32-bit, which we've not been supporting for quite some time. Drop the
comment and change all involved types to unsigned. Take the opportunity
and also replace bus_cycle's fixed width type.

Additionally there's no point using an "arbitrary (but long enough)
timeout" here. Just use the maximum possible value; Linux does so too,
just as an additional data point.

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