]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/watchdog: add locking around init/exit functions
authorNicholas Piggin <npiggin@gmail.com>
Wed, 9 Aug 2017 12:41:26 +0000 (22:41 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 9 Aug 2017 13:45:33 +0000 (23:45 +1000)
commitc9222546bed1e890f287af7b6c97fd2a544d66d1
tree571de7dd46c078978511f27a1db07fc3ec6c9f61
parent24bc9e31afecfcff05bf8bcd36c64d4f23a036ae
powerpc/watchdog: add locking around init/exit functions

When CPUs start and stop the watchdog, they manipulate shared data
that is normally protected by the lock. Other CPUs can be running
concurrently at this time, so it's a good idea to use locking here
to be on the safe side.

Remove the barrier which is undocumented and didn't do anything.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/watchdog.c