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)
commit63585d5958dacd1f2ac73bff0f1f37a98ba348e4
treee1b72d248d041c022828b7992e1e65ddd1cd4b18
parent0c211cecc6af608b5e3137d0d898b08fc7fc14ed
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