x86/platform/uv: Rework NMI "action" modparam handling
authorHans de Goede <hdegoede@redhat.com>
Sat, 16 Sep 2023 13:06:53 +0000 (15:06 +0200)
committerIngo Molnar <mingo@kernel.org>
Sun, 17 Sep 2023 07:52:51 +0000 (09:52 +0200)
commitec2f16f180ae65b7c7179b4bb71af5fb2650f036
treefb1d2af68a7df51ffa0f5206c1e37faed534891b
parentf0b0d403eabbe135d8dbb40ad5e41018947d336c
x86/platform/uv: Rework NMI "action" modparam handling

Rework NMI "action" modparam handling:

 - Replace the uv_nmi_action string with an enum; and
 - Use sysfs_match_string() for string parsing in param_set_action()

No change in functionality intended.

Suggested-by: Steve Wahl <steve.wahl@hpe.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Tested-by: Steve Wahl <steve.wahl@hpe.com>
Reviewed-by: Justin Stitt <justinstitt@google.com>
Reviewed-by: Steve Wahl <steve.wahl@hpe.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20230916130653.243532-1-hdegoede@redhat.com
arch/x86/platform/uv/uv_nmi.c