x86/time: switch platform timer hooks to altcall
authorJan Beulich <jbeulich@suse.com>
Fri, 25 Feb 2022 09:48:20 +0000 (10:48 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 25 Feb 2022 09:48:20 +0000 (10:48 +0100)
commitbed9ae54df44b9f6914eae4c6d231be41d859ecd
treef05a3945bb31936c638ff309ce5254b0a4a7a747
parent9ba4c529985a1773852069889a5b53f2ed26c408
x86/time: switch platform timer hooks to altcall

Except in the "clocksource=tsc" case we can replace the indirect calls
involved in accessing the platform timers by direct ones, as they get
established once and never changed. To also cover the "tsc" case, invoke
what read_tsc() resolves to directly. In turn read_tsc() then becomes
unreachable and hence can move to .init.*.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
xen/arch/x86/time.c