diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-01-31 18:25:09 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-01-31 18:25:09 -0500 |
commit | fbdde7bd274d74729954190f99afcb1e3d9bbfba (patch) | |
tree | a72dadd4a8b4957a4e21bf7ae38a763a71d6e274 /kernel/sched.c | |
parent | e1a9c9872dd004617555dff079b357a6ffd945e9 (diff) | |
parent | c4772d99300a9fc13c86aaa370e630c5973664f6 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/mingo/linux-2.6-sched
* git://git.kernel.org/pub/scm/linux/kernel/git/mingo/linux-2.6-sched:
debug: turn ignore_loglevel into an early param
sched: remove unused params
sched: let +nice tasks have smaller impact
sched: fix high wake up latencies with FAIR_USER_SCHED
RCU: add help text for "RCU implementation type"
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index ba4c88088f62..8355e007e021 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -1255,12 +1255,12 @@ static int task_hot(struct task_struct *p, u64 now, struct sched_domain *sd); | |||
1255 | 1255 | ||
1256 | #define sched_class_highest (&rt_sched_class) | 1256 | #define sched_class_highest (&rt_sched_class) |
1257 | 1257 | ||
1258 | static void inc_nr_running(struct task_struct *p, struct rq *rq) | 1258 | static void inc_nr_running(struct rq *rq) |
1259 | { | 1259 | { |
1260 | rq->nr_running++; | 1260 | rq->nr_running++; |
1261 | } | 1261 | } |
1262 | 1262 | ||
1263 | static void dec_nr_running(struct task_struct *p, struct rq *rq) | 1263 | static void dec_nr_running(struct rq *rq) |
1264 | { | 1264 | { |
1265 | rq->nr_running--; | 1265 | rq->nr_running--; |
1266 | } | 1266 | } |
@@ -1354,7 +1354,7 @@ static void activate_task(struct rq *rq, struct task_struct *p, int wakeup) | |||
1354 | rq->nr_uninterruptible--; | 1354 | rq->nr_uninterruptible--; |
1355 | 1355 | ||
1356 | enqueue_task(rq, p, wakeup); | 1356 | enqueue_task(rq, p, wakeup); |
1357 | inc_nr_running(p, rq); | 1357 | inc_nr_running(rq); |
1358 | } | 1358 | } |
1359 | 1359 | ||
1360 | /* | 1360 | /* |
@@ -1366,7 +1366,7 @@ static void deactivate_task(struct rq *rq, struct task_struct *p, int sleep) | |||
1366 | rq->nr_uninterruptible++; | 1366 | rq->nr_uninterruptible++; |
1367 | 1367 | ||
1368 | dequeue_task(rq, p, sleep); | 1368 | dequeue_task(rq, p, sleep); |
1369 | dec_nr_running(p, rq); | 1369 | dec_nr_running(rq); |
1370 | } | 1370 | } |
1371 | 1371 | ||
1372 | /** | 1372 | /** |
@@ -2006,7 +2006,7 @@ void fastcall wake_up_new_task(struct task_struct *p, unsigned long clone_flags) | |||
2006 | * management (if any): | 2006 | * management (if any): |
2007 | */ | 2007 | */ |
2008 | p->sched_class->task_new(rq, p); | 2008 | p->sched_class->task_new(rq, p); |
2009 | inc_nr_running(p, rq); | 2009 | inc_nr_running(rq); |
2010 | } | 2010 | } |
2011 | check_preempt_curr(rq, p); | 2011 | check_preempt_curr(rq, p); |
2012 | #ifdef CONFIG_SMP | 2012 | #ifdef CONFIG_SMP |