Messages in this thread Patch in this message | ![/](/images/icornerl.gif) | | From | Con Kolivas <> | Subject | [PATCH]O16.1int was Re: [PATCH] O16int for interactivity | Date | Sat, 16 Aug 2003 12:14:43 +1000 |
| |
On Sat, 16 Aug 2003 05:00, Felipe Alfaro Solana wrote: > Well, I'm sorry to say there's something really wrong here with O16int. > 2.6.0-test3-mm2 plus O16int takes exactly twice the time to boot than
Easy fix. Sorry about that. Here is an O16.1int patch. Backs out the selective preemption by only interactive tasks.
Con --- linux-2.6.0-test3-mm2/kernel/sched.c 2003-08-16 12:01:38.000000000 +1000 +++ linux-2.6.0-test3-mm2-O16/kernel/sched.c 2003-08-16 12:11:03.000000000 +1000 @@ -566,8 +566,7 @@ repeat: static inline int task_preempts_curr(task_t *p, runqueue_t *rq) { - if (p->prio < rq->curr->prio && - ((TASK_INTERACTIVE(p) && p->mm) || !p->mm)) { + if (p->prio < rq->curr->prio) { /* * Prevent a task preempting it's own waker * to avoid starvation | ![\](/images/icornerr.gif) |