]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: amd-pmc: Avoid reading SMU version at probe time
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 11 Apr 2022 14:38:20 +0000 (09:38 -0500)
committerHans de Goede <hdegoede@redhat.com>
Wed, 13 Apr 2022 11:49:48 +0000 (13:49 +0200)
commit23804ba9e4c908159fed8ca78c5c8e440cc2f90d
treedfb652a1c62db1b7582c7f6cfa0c19212146d87c
parentf4d3a50f88ef468bd07e4e4ae75a5b8557f2e98f
platform/x86: amd-pmc: Avoid reading SMU version at probe time

Currently the SMU version only used to determine whether the SMU supports
reading the idle mask. To speed up startup, move it to the first time
the idle mask is read.

This decreases the startup time from ~28500us to 100us.

Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20220411143820.13971-3-mario.limonciello@amd.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/amd-pmc.c