Magellan Linux

Annotation of /trunk/kernel26-magellan/patches-2.6.20-r5/0102-2.6.20.2-ck_sched_fix.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 133 - (hide annotations) (download)
Fri Apr 27 15:25:13 2007 UTC (17 years, 1 month ago) by niro
File size: 690 byte(s)
files for 2.6.20-r5

1 niro 133 --- 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;