x86/aperfmperf: Separate AP/BP frequency invariance init
authorThomas Gleixner <tglx@linutronix.de>
Fri, 15 Apr 2022 19:19:53 +0000 (21:19 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 27 Apr 2022 13:51:08 +0000 (15:51 +0200)
commit138a7f9c6beae8d652113b8e7a44994b4200bbcd
treeb72037da2554e7af9dcd468ae68322ad3a713388
parent55cb0b70749361d7f82a979768c77ac301f07da9
x86/aperfmperf: Separate AP/BP frequency invariance init

This code is convoluted and because it can be invoked post init via the
ACPI/CPPC code, all of the initialization functionality is built in instead
of being part of init text and init data.

As a first step create separate calls for the boot and the application
processors.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Paul E. McKenney <paulmck@kernel.org>
Link: https://lore.kernel.org/r/20220415161206.536733494@linutronix.de
arch/x86/include/asm/topology.h
arch/x86/kernel/acpi/cppc.c
arch/x86/kernel/cpu/aperfmperf.c
arch/x86/kernel/smpboot.c