x86/APIC: reduce rounding errors in calculations
authorJan Beulich <jbeulich@suse.com>
Mon, 16 Mar 2020 16:32:41 +0000 (17:32 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 16 Mar 2020 16:32:41 +0000 (17:32 +0100)
commit740ffb7fc7b9d1afa23bb38910913279c28aa991
tree6b0cabd8181e7c824430b4a451b3e75006069735
parenta60bb682190f8c0147584fa58de47528cd866be3
x86/APIC: reduce rounding errors in calculations

Dividing by HZ/10 just to subsequently multiply by HZ again in all uses
of the respective variable is pretty pointlessly introducing rounding
(really: truncation) errors. While transforming the respective
expressions it became apparent that "result" would be left unused except
for its use as function return value. As the sole caller of the function
doesn't look at the returned value, simply convert the function to have
"void" return type.

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