Magellan Linux

Contents of /trunk/kernel26-alx/patches-2.6.20-r6/0102-2.6.20.2-ck_sched_fix.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1175 - (show annotations) (download)
Thu Oct 14 12:15:46 2010 UTC (13 years, 6 months ago) by niro
File size: 690 byte(s)
-2.6.20-alx-r6 new magellan 0.5.2 kernel
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;