David Howells 5e4def2038 Pass mode to wait_on_atomic_t() action funcs and provide default actions
Make wait_on_atomic_t() pass the TASK_* mode onto its action function as an
extra argument and make it 'unsigned int throughout.

Also, consolidate a bunch of identical action functions into a default
function that can do the appropriate thing for the mode.

Also, change the argument name in the bit_wait*() function declarations to
reflect the fact that it's the mode and not the bit number.

[Peter Z gives this a grudging ACK, but thinks that the whole atomic_t wait
should be done differently, though he's not immediately sure as to how]

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Peter Zijlstra <peterz@infradead.org>
cc: Ingo Molnar <mingo@kernel.org>
2017-11-13 15:38:16 +00:00
..
2017-09-06 17:27:24 -07:00
2017-09-06 17:27:24 -07:00
2017-09-06 17:27:24 -07:00
2017-02-27 18:43:46 -08:00
2017-09-06 17:27:24 -07:00
2011-07-25 14:58:15 -07:00
2017-07-06 16:24:30 -07:00
2017-09-06 17:27:24 -07:00
2015-12-29 17:45:49 -08:00
2017-09-06 17:27:24 -07:00
2016-12-12 18:55:06 -08:00
2017-07-06 16:24:30 -07:00
2017-09-06 17:27:24 -07:00
2017-09-06 17:27:24 -07:00
2011-03-31 11:26:23 -03:00
2017-09-06 17:27:24 -07:00
2012-05-29 23:28:40 -04:00
2017-09-06 17:27:24 -07:00
2016-05-12 15:52:50 -07:00