diff options
author | Peter Zijlstra <peterz@infradead.org> | 2020-02-19 10:22:06 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2020-05-19 15:51:19 +0200 |
commit | 5567d11c21a1d508a91a8cb64a819783a0835d9f (patch) | |
tree | 1366f2a18fc6441c4eadb40206504009bcd07b05 /include | |
parent | b052df3da821adfd6be26a6eb16624fb50e90e56 (diff) | |
download | linux-stable-5567d11c21a1d508a91a8cb64a819783a0835d9f.tar.gz linux-stable-5567d11c21a1d508a91a8cb64a819783a0835d9f.tar.bz2 linux-stable-5567d11c21a1d508a91a8cb64a819783a0835d9f.zip |
x86/mce: Send #MC singal from task work
Convert #MC over to using task_work_add(); it will run the same code
slightly later, on the return to user path of the same exception.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Reviewed-by: Alexandre Chartre <alexandre.chartre@oracle.com>
Link: https://lkml.kernel.org/r/20200505134100.957390899@linutronix.de
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sched.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 9437b53cc603..57d0ed061ae4 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1297,6 +1297,12 @@ struct task_struct { unsigned long prev_lowest_stack; #endif +#ifdef CONFIG_X86_MCE + u64 mce_addr; + u64 mce_status; + struct callback_head mce_kill_me; +#endif + /* * New fields for task_struct should be added above here, so that * they are included in the randomized portion of task_struct. |