mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 22:21:42 +00:00
1c8b8cf28f
Instead of using local_mcck_disable() / local_mcck_enable() implement and use local_mcck_save() / local_mcck_restore() to disable machine checks, and restoring the previous state. The problem with using local_mcck_disable() / local_mcck_enable() is that there is an assumption that machine checks are always enabled. While this is currently the case the code still looks quite odd, readers need to double check if the code is correct. In order to increase readability save and then restore the old machine check mask bit, instead of assuming that it must have been enabled. Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com> |
||
---|---|---|
.. | ||
expoline | ||
delay.c | ||
error-inject.c | ||
find.c | ||
Makefile | ||
mem.S | ||
probes.c | ||
spinlock.c | ||
string.c | ||
test_kprobes_asm.S | ||
test_kprobes.c | ||
test_kprobes.h | ||
test_modules_helpers.c | ||
test_modules.c | ||
test_modules.h | ||
test_unwind.c | ||
tishift.S | ||
uaccess.c | ||
xor.c |