]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: amd-pmc: Move FCH init to first use
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 11 Apr 2022 14:38:19 +0000 (09:38 -0500)
committerHans de Goede <hdegoede@redhat.com>
Wed, 13 Apr 2022 11:49:48 +0000 (13:49 +0200)
commit22927d4ca55687efa8645aa0127feb446fa64a4f
treee1b72d248d041c022828b7992e1e65ddd1cd4b18
parent7ed15e282fbcdc87fa22eafa2f36101f0f108195
platform/x86: amd-pmc: Move FCH init to first use

FCH address is accessed only when looking at s0ix stats.

As this is unnecessary for initialization, move it ito the first
time stats are accessed from sysfs.  This descrease startup time
by about 200us.

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-2-mario.limonciello@amd.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/amd-pmc.c