[PATCH]O16.1int was Re: [PATCH] O16int for interactivity

Con Kolivas
2003-08-16T02:08:31Z

[-- Attachment #1: Type: text/plain, Size: 325 bytes --]

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

[-- Attachment #2: patch-O16-O16.1int --]
[-- Type: text/x-diff, Size: 455 bytes --]

--- 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