lkml.org 
[lkml]   [1998]   [Mar]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [uPATCH] sched.c change; snappy_response++
On 10 Mar 1998, Wolfram Gloger wrote:

> When considering such a change, please also consider this one (for
> exploiting the fast thread context switch somewhat better):

OK, let's try it...

> @@ -277,8 +277,8 @@
> weight += PROC_CHANGE_PENALTY;
> #endif
>
> - /* .. and a slight advantage to the current process */
> - if (p == prev)
> + /* .. and a slight advantage to the current thread */
> + if (p->mm == prev->mm)
> weight += 1;
> }

But why remove the if (p == prev) test?
It seems valid to me...

Rik.
+-------------------------------------------+--------------------------+
| Linux: - LinuxHQ MM-patches page | Scouting webmaster |
| - kswapd ask-him & complain-to guy | Vries cubscout leader |
| http://www.fys.ruu.nl/~riel/ | <H.H.vanRiel@fys.ruu.nl> |
+-------------------------------------------+--------------------------+


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.035 / U:0.456 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site