]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cpufreq/amd-pstate: Remove the redundant amd_pstate_set_driver() call
authorDhananjay Ugwekar <Dhananjay.Ugwekar@amd.com>
Thu, 17 Oct 2024 10:05:33 +0000 (10:05 +0000)
committerMario Limonciello <mario.limonciello@amd.com>
Mon, 28 Oct 2024 19:54:35 +0000 (14:54 -0500)
commitb427ac4084753d7c62ef797bed7f30203f0ef5fb
tree07fabd98266149256321e70696b894adf54daf82
parent162cfa4eba7350cdcbd610c4b2af860a0ecc5f21
cpufreq/amd-pstate: Remove the redundant amd_pstate_set_driver() call

amd_pstate_set_driver() is called twice, once in amd_pstate_init() and once
as part of amd_pstate_register_driver(). Move around code and eliminate
the redundancy.

Signed-off-by: Dhananjay Ugwekar <Dhananjay.Ugwekar@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20241017100528.300143-5-Dhananjay.Ugwekar@amd.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
drivers/cpufreq/amd-pstate.c