diff options
author | Gabriele Paoloni <[email protected]> | 2020-11-27 16:18:16 +0000 |
---|---|---|
committer | Borislav Petkov <[email protected]> | 2020-12-01 18:45:56 +0100 |
commit | e273e6e12ab1db3eb57712bd60655744d0091fa3 (patch) | |
tree | f63cb913895ed66984dd6f9e5528ee45398a9cc0 /lib/mpi/mpi-div.c | |
parent | 15936ca13dac032a3f4e6b4ba78add3880bddcf3 (diff) |
x86/mce: Move the mce_panic() call and 'kill_it' assignments to the right places
Right now, for local MCEs the machine calls panic(), if needed, right
after lmce is set. For MCE broadcasting, mce_reign() takes care of
calling mce_panic().
Hence:
- improve readability by moving the conditional evaluation of
tolerant up to when kill_it is set first;
- move the mce_panic() call up into the statement where mce_end()
fails.
[ bp: Massage, remove comment in the mce_end() failure case because it
is superfluous; use local ptr 'cfg' in both tests. ]
Signed-off-by: Gabriele Paoloni <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Reviewed-by: Tony Luck <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpi-div.c')
0 files changed, 0 insertions, 0 deletions