diff options
author | Fabian Frederick <fabf@skynet.be> | 2015-02-20 19:12:53 +0100 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2015-03-25 16:53:28 +1100 |
commit | 111fbc68fd895ba437bcb03d5dcc4dd21bc61df8 (patch) | |
tree | e1d46889e5888dc4c9ef8da7b96bffd14355cf08 /arch/powerpc | |
parent | 1f8c82ab1b0bc7e24601c0fca411fd27b9c883ef (diff) |
powerpc/pmac: replace current->state by set_current_state()
Use helper functions to access current->state.
Direct assignments are prone to races and therefore buggy.
current->state = TASK_RUNNING can be replaced by __set_current_state()
Thanks to Peter Zijlstra for the exact definition of the problem.
Suggested-By: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc')
0 files changed, 0 insertions, 0 deletions