diff options
author | Youquan Song <youquan.song@intel.com> | 2020-10-07 00:09:05 +0300 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2020-10-07 11:51:42 +0300 |
commit | 41ce0564bfe2e129d56730418d8c0a9f9f2d31b5 (patch) | |
tree | 3a7eef61d9a61a63ff6c14c25467c9d7c0529ebd /arch/x86/kernel/cpu/mce/internal.h | |
parent | 5da8e4a658109e3b7e1f45ae672b7c06ac3e7158 (diff) | |
download | linux-41ce0564bfe2e129d56730418d8c0a9f9f2d31b5.tar.xz |
x86/mce: Pass pointer to saved pt_regs to severity calculation routines
New recovery features require additional information about processor
state when a machine check occurred. Pass pt_regs down to the routines
that need it.
No functional change.
Signed-off-by: Youquan Song <youquan.song@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20201006210910.21062-2-tony.luck@intel.com
Diffstat (limited to 'arch/x86/kernel/cpu/mce/internal.h')
-rw-r--r-- | arch/x86/kernel/cpu/mce/internal.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/mce/internal.h b/arch/x86/kernel/cpu/mce/internal.h index b122610e9046..88dcc79cfb07 100644 --- a/arch/x86/kernel/cpu/mce/internal.h +++ b/arch/x86/kernel/cpu/mce/internal.h @@ -38,7 +38,8 @@ int mce_gen_pool_add(struct mce *mce); int mce_gen_pool_init(void); struct llist_node *mce_gen_pool_prepare_records(void); -extern int (*mce_severity)(struct mce *a, int tolerant, char **msg, bool is_excp); +extern int (*mce_severity)(struct mce *a, struct pt_regs *regs, + int tolerant, char **msg, bool is_excp); struct dentry *mce_get_debugfs_dir(void); extern mce_banks_t mce_banks_ce_disabled; |