summaryrefslogtreecommitdiff
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2011-06-03 12:27:47 +0400
committerIngo Molnar <mingo@elte.hu>2011-06-03 12:27:47 +0400
commite197f094b7da7d94812492cfcd706d143f1020e5 (patch)
treec9f3394ce9ff51dd325708f7b14f4115ed60b944 /kernel/sched.c
parentf339b9dc1f03591761d5d930800db24bc0eda1e1 (diff)
parente69c634190dc724ef2d845ace8d783031d3e492e (diff)
downloadlinux-e197f094b7da7d94812492cfcd706d143f1020e5.tar.xz
Merge branch 'unlikely/sched' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace into sched/urgent
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 2fe98ed474da..fd18f395a1bf 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -124,7 +124,7 @@
static inline int rt_policy(int policy)
{
- if (unlikely(policy == SCHED_FIFO || policy == SCHED_RR))
+ if (policy == SCHED_FIFO || policy == SCHED_RR)
return 1;
return 0;
}
@@ -2486,7 +2486,7 @@ ttwu_do_wakeup(struct rq *rq, struct task_struct *p, int wake_flags)
if (p->sched_class->task_woken)
p->sched_class->task_woken(rq, p);
- if (unlikely(rq->idle_stamp)) {
+ if (rq->idle_stamp) {
u64 delta = rq->clock - rq->idle_stamp;
u64 max = 2*sysctl_sched_migration_cost;