Magellan Linux

Contents of /trunk/kernel26-magellan/patches-2.6.20-r3/0102-2.6.20.2-ck_sched_fix.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 132 - (show annotations) (download)
Fri Apr 27 15:24:56 2007 UTC (17 years ago) by niro
File size: 690 byte(s)
files for 2.6.20-r4

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;