lkml.org 
[lkml]   [2003]   [Aug]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH]O16.1int was Re: [PATCH] O16int for interactivity
Date
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
\
 
 \ /
  Last update: 2005-03-22 13:47    [W:0.119 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site