diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-08-24 19:11:13 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-08-24 19:11:13 -0400 |
commit | d1caeb02b17c6bc215a9a40a98a1beb92dcbd310 (patch) | |
tree | 4ed5e724ce073c270fb9e4d8d9cb665b826ff111 /kernel/sched.c | |
parent | 37a3cc99d5048df62bb201c0b45a51ba94497e45 (diff) | |
parent | 095e56c7036fe97bc3ebcd80ed6e121be0847656 (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:
sched: fix startup penalty calculation
sched: simplify bonus calculation #2
sched: simplify bonus calculation #1
sched: tidy up and simplify the bonus balance
sched: optimize task_tick_rt() a bit
sched: simplify can_migrate_task()
sched: remove HZ dependency from the granularity default
sched: CONFIG_SCHED_GROUP_FAIR=y fixlet
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 96e9b82246d2..6798328a2e0e 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -2180,12 +2180,6 @@ int can_migrate_task(struct task_struct *p, struct rq *rq, int this_cpu, | |||
2180 | if (task_running(rq, p)) | 2180 | if (task_running(rq, p)) |
2181 | return 0; | 2181 | return 0; |
2182 | 2182 | ||
2183 | /* | ||
2184 | * Aggressive migration if too many balance attempts have failed: | ||
2185 | */ | ||
2186 | if (sd->nr_balance_failed > sd->cache_nice_tries) | ||
2187 | return 1; | ||
2188 | |||
2189 | return 1; | 2183 | return 1; |
2190 | } | 2184 | } |
2191 | 2185 | ||
@@ -4923,7 +4917,7 @@ static inline void sched_init_granularity(void) | |||
4923 | if (sysctl_sched_granularity > gran_limit) | 4917 | if (sysctl_sched_granularity > gran_limit) |
4924 | sysctl_sched_granularity = gran_limit; | 4918 | sysctl_sched_granularity = gran_limit; |
4925 | 4919 | ||
4926 | sysctl_sched_runtime_limit = sysctl_sched_granularity * 8; | 4920 | sysctl_sched_runtime_limit = sysctl_sched_granularity * 5; |
4927 | sysctl_sched_wakeup_granularity = sysctl_sched_granularity / 2; | 4921 | sysctl_sched_wakeup_granularity = sysctl_sched_granularity / 2; |
4928 | } | 4922 | } |
4929 | 4923 | ||