]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit96ea91e7b6ee2c406598d859e7348b4829404eea
tree571de7dd46c078978511f27a1db07fc3ec6c9f61
parent87607a30be92f1ecee3af6f4a5779e179db98118
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