Contents of /trunk/kernel26-alx/patches-2.6.20-r5/0102-2.6.20.2-ck_sched_fix.patch
Parent Directory | Revision Log
Revision 199 -
(show annotations)
(download)
Fri May 18 11:04:36 2007 UTC (17 years, 4 months ago) by niro
File size: 690 byte(s)
Fri May 18 11:04:36 2007 UTC (17 years, 4 months ago) by niro
File size: 690 byte(s)
-import
1 | --- linux-2.6.20-magellan-r1/kernel/sched.c 2007-03-11 13:06:14.000000000 +0100 |
2 | +++ linux-2.6.20-magellan-r1/kernel/sched.c.patched 2007-03-11 13:09:25.000000000 +0100 |
3 | @@ -3407,7 +3407,7 @@ |
4 | queue = rq->queue + idx; |
5 | next = list_entry(queue->next, struct task_struct, run_list); |
6 | |
7 | - if (dependent_sleeper(cpu, rq, next)) |
8 | + if (rq->nr_running == 1 && dependent_sleeper(cpu, rq, next)) |
9 | next = rq->idle; |
10 | else { |
11 | prefetch(next); |
12 | @@ -3425,7 +3425,7 @@ |
13 | sched_info_switch(prev, next); |
14 | if (likely(prev != next)) { |
15 | rq->preempted = rq->cache_ticks = 0; |
16 | - next->timestamp = now; |
17 | + next->timestamp = next->last_ran = now; |
18 | rq->nr_switches++; |
19 | rq->curr = next; |
20 | ++*switch_count; |