WSL2-Linux-Kernel/arch/x86/kernel/cpu/mce
Jens Axboe 91989c7078 task_work: cleanup notification modes
A previous commit changed the notification mode from true/false to an
int, allowing notify-no, notify-yes, or signal-notify. This was
backwards compatible in the sense that any existing true/false user
would translate to either 0 (on notification sent) or 1, the latter
which mapped to TWA_RESUME. TWA_SIGNAL was assigned a value of 2.

Clean this up properly, and define a proper enum for the notification
mode. Now we have:

- TWA_NONE. This is 0, same as before the original change, meaning no
  notification requested.
- TWA_RESUME. This is 1, same as before the original change, meaning
  that we use TIF_NOTIFY_RESUME.
- TWA_SIGNAL. This uses TIF_SIGPENDING/JOBCTL_TASK_WORK for the
  notification.

Clean up all the callers, switching their 0/1/false/true to using the
appropriate TWA_* mode for notifications.

Fixes: e91b481623 ("task_work: teach task_work_add() to do signal_wake_up()")
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-10-17 15:05:30 -06:00
..
Makefile x86/mce: Restore MCE injector's module name 2018-12-19 00:04:36 +01:00
amd.c x86/MCE/AMD, EDAC/mce_amd: Remove struct smca_hwid.xec_bitmap 2020-08-20 10:34:38 +02:00
apei.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 333 2019-06-05 17:37:06 +02:00
core.c task_work: cleanup notification modes 2020-10-17 15:05:30 -06:00
dev-mcelog.c x86/mce/dev-mcelog: Do not update kflags on AMD systems 2020-09-15 10:04:51 +02:00
genpool.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 437 2019-06-05 17:37:17 +02:00
inject.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
intel.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
internal.h x86/mce: Pass pointer to saved pt_regs to severity calculation routines 2020-10-07 10:51:42 +02:00
p5.c x86/mce: Address objtools noinstr complaints 2020-06-11 15:15:02 +02:00
severity.c x86/mce: Decode a kernel instruction to determine if it is copying from user 2020-10-07 11:32:40 +02:00
therm_throt.c x86/entry: Convert various system vectors 2020-06-11 15:15:14 +02:00
threshold.c x86/entry: Convert various system vectors 2020-06-11 15:15:14 +02:00
winchip.c x86/mce: Address objtools noinstr complaints 2020-06-11 15:15:02 +02:00