sched/wait: Add init_wait_func() helper

Add an init_wait_func() helper and implement init_wait() in terms of
init_wait_func().  Use the new helper wherever init_wait(wait) is
followed by replacing wait.func.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
5 files changed