diff options
author | Kirill Tkhai <ktkhai@parallels.com> | 2014-09-22 22:36:43 +0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-09-24 14:47:12 +0200 |
commit | 8aa6f0ebf41b5fdd186276394bf07e7bd6884d94 (patch) | |
tree | 1f8d596db1b6813bbbd36b7a14e6fc8ceb4ee13f /kernel/sched | |
parent | f1e3a0932f3a9554371792a7daaf1e0eb19f66d5 (diff) | |
download | linux-8aa6f0ebf41b5fdd186276394bf07e7bd6884d94.tar.gz linux-8aa6f0ebf41b5fdd186276394bf07e7bd6884d94.tar.bz2 linux-8aa6f0ebf41b5fdd186276394bf07e7bd6884d94.zip |
sched/rt: Use resched_curr() in task_tick_rt()
Some time ago PREEMPT_NEED_RESCHED was implemented,
so reschedule technics is a little more difficult now.
Signed-off-by: Kirill Tkhai <ktkhai@parallels.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/20140922183642.11015.66039.stgit@localhost
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched')
-rw-r--r-- | kernel/sched/rt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c index 2e6a7743703e..87ea5bf1b87f 100644 --- a/kernel/sched/rt.c +++ b/kernel/sched/rt.c @@ -2072,7 +2072,7 @@ static void task_tick_rt(struct rq *rq, struct task_struct *p, int queued) for_each_sched_rt_entity(rt_se) { if (rt_se->run_list.prev != rt_se->run_list.next) { requeue_task_rt(rq, p, 0); - set_tsk_need_resched(p); + resched_curr(rq); return; } } |