diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2020-03-31 10:53:18 +0200 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2020-04-14 15:49:51 +0200 |
commit | f26d2580a7ddc84aa9e51e47fdbb5ad63dbee5a7 (patch) | |
tree | 065febd8e563bc04e78e5a00e9b2fdf24ce2ffdb /arch/x86/include | |
parent | x86/mce/amd: Straighten CPU hotplug path (diff) | |
download | linux-f26d2580a7ddc84aa9e51e47fdbb5ad63dbee5a7.tar.xz linux-f26d2580a7ddc84aa9e51e47fdbb5ad63dbee5a7.zip |
x86/mce/amd: Cleanup threshold device remove path
Pass in the bank pointer directly to the cleaning up functions,
obviating the need for per-CPU accesses. Make the clean up path
interrupt-safe by cleaning the bank pointer first so that the rest of
the teardown happens safe from the thresholding interrupt.
No functional changes.
[ bp: Write commit message and reverse bank->shared test to save an
indentation level in threshold_remove_bank(). ]
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20200403161943.1458-7-bp@alien8.de
Diffstat (limited to 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/amd_nb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/amd_nb.h b/arch/x86/include/asm/amd_nb.h index c7df20e78b09..455066a06f60 100644 --- a/arch/x86/include/asm/amd_nb.h +++ b/arch/x86/include/asm/amd_nb.h @@ -57,6 +57,7 @@ struct threshold_bank { /* initialized to the number of CPUs on the node sharing this bank */ refcount_t cpus; + unsigned int shared; }; struct amd_northbridge { |