Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 106 - (show annotations) (download)
Sun Mar 11 16:18:20 2007 UTC (17 years, 3 months ago) by niro
File size: 690 byte(s)
ver bump to 2.6.20-r1;
- using linux-2.6.20.2
- 2.6.20-ck1 patch set
- 8.34.8 ati-drivers
- 1.0-9755 nvidia-drivers
- 1.2.0 ipw-drivers
- squashfs-3.0 support
- vesafb-tng 1.0-rc2
- fbsplash-0.9.2-r5 for linux-2.6.20-rc6
- removed zd1211 drivers (now in upstream tree)

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;