commit | 111fbc68fd895ba437bcb03d5dcc4dd21bc61df8 | [log] [tgz] |
---|---|---|
author | Fabian Frederick <fabf@skynet.be> | Fri Feb 20 19:12:53 2015 +0100 |
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | Wed Mar 25 16:53:28 2015 +1100 |
tree | e1d46889e5888dc4c9ef8da7b96bffd14355cf08 | |
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>