commit | 96ea91e7b6ee2c406598d859e7348b4829404eea | [log] [tgz] |
---|---|---|
author | Nicholas Piggin <npiggin@gmail.com> | Wed Aug 09 22:41:26 2017 +1000 |
committer | Michael Ellerman <mpe@ellerman.id.au> | Wed Aug 09 23:45:33 2017 +1000 |
tree | 571de7dd46c078978511f27a1db07fc3ec6c9f61 | |
parent | 87607a30be92f1ecee3af6f4a5779e179db98118 [diff] |
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>