x86: replace a few do_div() uses
authorJan Beulich <jbeulich@suse.com>
Fri, 18 Feb 2022 13:47:25 +0000 (14:47 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 18 Feb 2022 13:47:25 +0000 (14:47 +0100)
commit8dc44294806c83456794ba9488b4b440aa6193c2
treed8c80537b899788b712153a0febfb97674df6938
parentea140035d01afe28b896b6cb9848f2b2824d1bd2
x86: replace a few do_div() uses

When the macro's "return value" is not used, the macro use can be
replaced by a simply division, avoiding some obfuscation.

According to my observations, no change to generated code.

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