summaryrefslogtreecommitdiff
path: root/scripts/kconfig/zconf.gperf
diff options
context:
space:
mode:
authorDouglas Anderson <dianders@chromium.org>2016-10-21 18:58:51 +0300
committerThomas Gleixner <tglx@linutronix.de>2016-10-26 14:14:47 +0300
commit4b7e9cf9c84b09adc428e0433cd376b91f9c52a7 (patch)
treea589b39042ad47f5acb154a8a7506a77c4d85c59 /scripts/kconfig/zconf.gperf
parent6c5e9059692567740a4ee51530dffe51a4b9584d (diff)
downloadlinux-4b7e9cf9c84b09adc428e0433cd376b91f9c52a7.tar.xz
timers: Fix documentation for schedule_timeout() and similar
The documentation for schedule_timeout(), schedule_hrtimeout(), and schedule_hrtimeout_range() all claim that the routines couldn't possibly return early if the task state was TASK_UNINTERRUPTIBLE. This is simply not true since wake_up_process() will cause those routines to exit early. We cannot make schedule_[hr]timeout() loop until the timeout expires if the task state is uninterruptible because we have users which rely on the existing and designed behaviour. Make the documentation match the (correct) implementation. schedule_hrtimeout() returns -EINTR even when a uninterruptible task was woken up. This might look strange, but making the return code depend on the state is too much of an effort as it would affect all the call sites. There is no value in doing so, but we spell it out clearly in the documentation. Suggested-by: Daniel Kurtz <djkurtz@chromium.org> Signed-off-by: Douglas Anderson <dianders@chromium.org> Cc: huangtao@rock-chips.com Cc: heiko@sntech.de Cc: broonie@kernel.org Cc: briannorris@chromium.org Cc: Andreas Mohr <andi@lisas.de> Cc: linux-rockchip@lists.infradead.org Cc: tony.xie@rock-chips.com Cc: John Stultz <john.stultz@linaro.org> Cc: linux@roeck-us.net Cc: tskd08@gmail.com Link: http://lkml.kernel.org/r/1477065531-30342-2-git-send-email-dianders@chromium.org Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'scripts/kconfig/zconf.gperf')
0 files changed, 0 insertions, 0 deletions