summaryrefslogtreecommitdiff
path: root/arch/arm/mach-kirkwood
diff options
context:
space:
mode:
authorPaul E. McKenney <paul.mckenney@linaro.org>2011-11-10 12:41:56 -0800
committerSteven Rostedt <rostedt@rostedt.homelinux.com>2013-05-20 13:47:16 -0400
commited2bc69bd1c9118e8e44fd4bdcdebb25c59e5739 (patch)
treeb46141f04a40fc373ebef2eb976a7a43152c5cbc /arch/arm/mach-kirkwood
parenta635c0dc6b0c4717a3f1aa8ac4934ec1a4e345c8 (diff)
downloadlinux-rt-ed2bc69bd1c9118e8e44fd4bdcdebb25c59e5739.tar.gz
sched: Add is_idle_task() to handle invalidated uses of idle_cpu()
Commit 908a3283 (Fix idle_cpu()) invalidated some uses of idle_cpu(), which used to say whether or not the CPU was running the idle task, but now instead says whether or not the CPU is running the idle task in the absence of pending wakeups. Although this new implementation gives a better answer to the question "is this CPU idle?", it also invalidates other uses that were made of idle_cpu(). This commit therefore introduces a new is_idle_task() API member that determines whether or not the specified task is one of the idle tasks, allowing open-coded "->pid == 0" sequences to be replaced by something more meaningful. Suggested-by: Josh Triplett <josh@joshtriplett.org> Suggested-by: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'arch/arm/mach-kirkwood')
0 files changed, 0 insertions, 0 deletions