ACPI: platform_profile: Move sanity check out of the mutex
authorMario Limonciello <mario.limonciello@amd.com>
Fri, 6 Dec 2024 03:19:02 +0000 (21:19 -0600)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 10 Dec 2024 17:17:54 +0000 (19:17 +0200)
commit585484003dedaa35ffc8d1ead3f3334af021dee7
treec942398e1ef454f49267622f8271eba57aba0357
parent4d5c027bf55661da2621c694ea39908ae2d3a46a
ACPI: platform_profile: Move sanity check out of the mutex

The sanity check that the platform handler had choices set doesn't
need the mutex taken.  Move it to earlier in the registration.

Tested-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Tested-by: Matthew Schwartz <matthew.schwartz@linux.dev>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Reviewed-by: Armin Wolf <W_Armin@gmx.de>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20241206031918.1537-7-mario.limonciello@amd.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/acpi/platform_profile.c