summaryrefslogtreecommitdiffstats
path: root/kernel/sched/sched.h
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2016-09-20 22:00:38 +0200
committerIngo Molnar <mingo@kernel.org>2016-09-30 11:03:28 +0200
commitb2bf6c314e3a9e227925240d92ecd6e9b0110170 (patch)
tree4f412f1a68fb373542aea0fc62ba7de4577ad8b2 /kernel/sched/sched.h
parenta458ae2ea616420f74480f0f5ed67ca0f3b5dbf7 (diff)
downloadblackbird-obmc-linux-b2bf6c314e3a9e227925240d92ecd6e9b0110170.tar.gz
blackbird-obmc-linux-b2bf6c314e3a9e227925240d92ecd6e9b0110170.zip
sched/fair: Introduce set_curr_task() helper
Now that the ia64 only set_curr_task() symbol is gone, provide a helper just like put_prev_task(). Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched/sched.h')
-rw-r--r--kernel/sched/sched.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
index 01b5189235f2..fc6ae04ec080 100644
--- a/kernel/sched/sched.h
+++ b/kernel/sched/sched.h
@@ -1274,6 +1274,11 @@ static inline void put_prev_task(struct rq *rq, struct task_struct *prev)
prev->sched_class->put_prev_task(rq, prev);
}
+static inline void set_curr_task(struct rq *rq, struct task_struct *curr)
+{
+ curr->sched_class->set_curr_task(rq);
+}
+
#define sched_class_highest (&stop_sched_class)
#define for_each_class(class) \
for (class = sched_class_highest; class; class = class->next)
OpenPOWER on IntegriCloud