x86/ACPI: CPPC: Move init_freq_invariance_cppc() into x86 CPPC
authorHuang Rui <ray.huang@amd.com>
Mon, 14 Feb 2022 10:14:50 +0000 (18:14 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 8 Mar 2022 18:16:43 +0000 (19:16 +0100)
commiteb5616d4adeebf958a42822ee440d79e9f803bf7
treea369c3a5ca48f92708c405ea431ec71f57c3251d
parent666f6ecf35bc3a14ab01fa761a7e17afac04dcd5
x86/ACPI: CPPC: Move init_freq_invariance_cppc() into x86 CPPC

The init_freq_invariance_cppc code actually doesn't need the SMP
functionality. So setting the CONFIG_SMP as the check condition for
init_freq_invariance_cppc may cause the confusion to misunderstand the
CPPC. And the x86 CPPC file is better space to store the CPPC related
functions, while the init_freq_invariance_cppc is out of smpboot, that
means, the CONFIG_SMP won't be mandatory condition any more. And It's more
clear than before.

Signed-off-by: Huang Rui <ray.huang@amd.com>
[ rjw: Subject adjustment ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
arch/x86/include/asm/topology.h
arch/x86/kernel/acpi/cppc.c
arch/x86/kernel/smpboot.c