]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfc48df683c25f34c20e67c883a67380212a9dbcd
treea369c3a5ca48f92708c405ea431ec71f57c3251d
parentad1197cfecfb0dadbca60497c81e1734ca30c36d
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