x86/cpuidle: patch some indirect calls to direct ones
authorJan Beulich <jbeulich@suse.com>
Fri, 17 May 2019 12:39:38 +0000 (14:39 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 17 May 2019 12:39:38 +0000 (14:39 +0200)
commit51efb4d8f2c1d08bf53c1ba8acdfcb58caeb9d65
tree6af295273b982c8ce139609392ae06c06fb1f44f
parentc7ea45bc8b1f638666d50ad3641541d60e5d2eb8
x86/cpuidle: patch some indirect calls to direct ones

For now only the ones used during entering/exiting of idle states are
converted. Additionally pm_idle{,_save} and lapic_timer_{on,off} can't
be converted, as they may get established rather late (when Dom0 is
already active).

Note that for patching to be deferred until after the pre-SMP initcalls
(from where cpuidle_init_cpu() runs the first time) the pointers need to
start out as NULL.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/acpi/cpu_idle.c
xen/arch/x86/cpu/mwait-idle.c