Files
rockchip-kernel/kernel
NeilBrown 7d9378eb2a BACKPORT: SCHED: add some "wait..on_bit...timeout()" interfaces.
In commit c1221321b7
   sched: Allow wait_on_bit_action() functions to support a timeout

I suggested that a "wait_on_bit_timeout()" interface would not meet my
need.  This isn't true - I was just over-engineering.

Including a 'private' field in wait_bit_key instead of a focused
"timeout" field was just premature generalization.  If some other
use is ever found, it can be generalized or added later.

So this patch renames "private" to "timeout" with a meaning "stop
waiting when "jiffies" reaches or passes "timeout",
and adds two of the many possible wait..bit..timeout() interfaces:

wait_on_page_bit_killable_timeout(), which is the one I want to use,
and out_of_line_wait_on_bit_timeout() which is a reasonably general
example.  Others can be added as needed.

BUG=chromium:477427
TEST=Compile and run new Bluetooth backport on veyron.

Signed-off-by: Arman Uguray <armansito@chromium.org>
(cherry picked from commit cbbce82209)

Change-Id: Ibee4138876bd4cee35577e162de658779a950e4f
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: NeilBrown <neilb@suse.de>
Acked-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Reviewed-on: https://chromium-review.googlesource.com/267573
Reviewed-by: Olof Johansson <olofj@chromium.org>
Tested-by: Arman Uguray <armansito@chromium.org>
Commit-Queue: Arman Uguray <armansito@chromium.org>
2015-04-28 04:49:09 +00:00
..
2014-02-27 12:38:03 +01:00
2013-11-13 12:09:34 +09:00
2013-12-04 14:09:46 +10:30
2014-01-30 16:56:54 -08:00
2015-01-12 16:49:26 -08:00
2013-09-11 15:58:27 -07:00
2014-05-02 18:50:11 -07:00