]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cpufreq/amd-pstate: Move registration after static function call update
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 28 Oct 2024 14:55:42 +0000 (09:55 -0500)
committerMario Limonciello <mario.limonciello@amd.com>
Tue, 29 Oct 2024 13:50:39 +0000 (08:50 -0500)
commitff2653ded4d99b709f62f35656d976c47a7aa476
tree96db4860d293066deb911809565a9d5aeb5f0056
parent3ac757e8db3deacc8058912d55efd1390f985d80
cpufreq/amd-pstate: Move registration after static function call update

On shared memory designs the static functions need to work before
registration is done or the system can hang at bootup.

Move the registration later in amd_pstate_init() to solve this.

Fixes: b427ac408475 ("cpufreq/amd-pstate: Remove the redundant amd_pstate_set_driver() call")
Reported-by: Klara Modin <klarasmodin@gmail.com>
Closes: https://lore.kernel.org/linux-pm/cf9c146d-bacf-444e-92e2-15ebf513af96@gmail.com/#t
Tested-by: Klara Modin <klarasmodin@gmail.com>
Tested-by: Dhananjay Ugwekar <dhananjay.ugwekar@amd.com>
Link: https://lore.kernel.org/r/20241028145542.1739160-2-superm1@kernel.org
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
drivers/cpufreq/amd-pstate.c