mirror_ubuntu-kernels/drivers/platform/x86/amd
Hans de Goede e0c40529ff platform/x86/amd/pmf: Ensure mutexes are initialized before use
As soon as the first handler or sysfs file is registered
the mutex may get used.

Move the initialization to before any handler registration /
sysfs file creation.

Likewise move the destruction of the mutex to after all
the de-initialization is done.

Fixes: da5ce22df5 ("platform/x86/amd/pmf: Add support for PMF core layer")
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20230130132554.696025-1-hdegoede@redhat.com
2023-01-30 14:30:57 +01:00
..
pmf platform/x86/amd/pmf: Ensure mutexes are initialized before use 2023-01-30 14:30:57 +01:00
hsmp.c platform/x86: use PLATFORM_DEVID_NONE instead of -1 2022-10-03 09:40:04 +02:00
Kconfig platform/x86/amd/pmf: Add support for PMF core layer 2022-08-15 13:23:37 +02:00
Makefile platform/x86/amd/pmf: Add support for PMF core layer 2022-08-15 13:23:37 +02:00
pmc.c platform/x86/amd: pmc: Add a module parameter to disable workarounds 2023-01-24 13:41:13 +01:00