summaryrefslogtreecommitdiff
path: root/arch/powerpc/lib/code-patching.c
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2021-11-10 12:50:56 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2021-11-25 11:25:34 +1100
commit1f01bf90765fa5f88fbae452c131c1edf5cda7ba (patch)
tree4ac3efdd608cf7f5e6599f88adc142d1e029e732 /arch/powerpc/lib/code-patching.c
parent76521c4b0291ad25723638ade5a0ff4d5f659771 (diff)
powerpc/watchdog: read TB close to where it is used
When taking watchdog actions, printing messages, comparing and re-setting wd_smp_last_reset_tb, etc., read TB close to the point of use and under wd_smp_lock or printing lock (if applicable). This should keep timebase mostly monotonic with kernel log messages, and could prevent (in theory) a laggy CPU updating wd_smp_last_reset_tb to something a long way in the past, and causing other CPUs to appear to be stuck. These additional TB reads are all slowpath (lockup has been detected), so performance does not matter. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Reviewed-by: Laurent Dufour <ldufour@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20211110025056.2084347-5-npiggin@gmail.com
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions