• Nicholas Piggin's avatar
    powerpc/watchdog: Fix marking of stuck CPUs · 87607a30
    Nicholas Piggin authored
    When the SMP detector finds other CPUs stuck, it iterates over
    them and marks them as stuck. This pulls them out of the pending
    mask and allows the detector to continue with remaining good
    CPUs (if nmi_watchdog=panic is not enabled).
    
    The code to dothat was buggy because when setting a CPU stuck,
    if the pending mask became empty, it resets it to keep the
    watchdog running. However the iterator will continue to run
    over the new pending mask and mark remaining good CPUs sas stuck.
    
    Fix this by doing it with cpumask bitwise operations.
    Signed-off-by: default avatarNicholas Piggin <npiggin@gmail.com>
    Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
    87607a30
watchdog.c 9.41 KB