]> Git Repo - linux.git/commit - include/linux/wait.h
sched/wait: Introduce init_wait_entry()
authorOleg Nesterov <[email protected]>
Tue, 6 Sep 2016 14:00:55 +0000 (16:00 +0200)
committerIngo Molnar <[email protected]>
Fri, 30 Sep 2016 08:54:03 +0000 (10:54 +0200)
commit0176beaffbe9ed627b6a4dfa61d640f1a848086f
tree88d38997e19ca0fc353f6b48021efbf84c427612
parenteaf9ef52241b545fe63621266bfc6fd8b06559ff
sched/wait: Introduce init_wait_entry()

The partial initialization of wait_queue_t in prepare_to_wait_event() looks
ugly. This was done to shrink .text, but we can simply add the new helper
which does the full initialization and shrink the compiled code a bit more.

And. This way prepare_to_wait_event() can have more users. In particular we
are ready to remove the signal_pending_state() checks from wait_bit_action_f
helpers and change __wait_on_bit_lock() to use prepare_to_wait_event().

Signed-off-by: Oleg Nesterov <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Bart Van Assche <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Neil Brown <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
include/linux/wait.h
kernel/sched/wait.c
This page took 0.044598 seconds and 4 git commands to generate.