lkml.org 
[lkml]   [2002]   [Aug]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: Combined performance patches update for 2.4.19
On Sat, 24 Aug 2002 conman@kolivas.net wrote:
> Quoting Rik van Riel <riel@conectiva.com.br>:
> > On Fri, 23 Aug 2002 conman@kolivas.net wrote:
> >
> > > I've completed merging the following patches:
> > >
> > > O(1) scheduler
> > > Preemptible
> > > Low latency
> >
> > Could I interest you in the -rmap VM ? ;)
> >
> > http://surriel.com/patches/
>
> Sure I'll give it a go, but it might kill me trying :P

OK, here's a little patch to be able to combine rmap and preempt.

have fun,

Rik
--
Bravely reimplemented by the knights who say "NIH".

http://www.surriel.com/ http://distro.conectiva.com/


===== include/linux/mm.h 1.47 vs edited =====
--- 1.47/include/linux/mm.h Tue Aug 6 15:59:20 2002
+++ edited/include/linux/mm.h Fri Aug 23 12:48:44 2002
@@ -337,6 +337,7 @@
* busywait with less bus contention for a good time to
* attempt to acquire the lock bit.
*/
+ preempt_disable();
#ifdef CONFIG_SMP
while (test_and_set_bit(PG_chainlock, &page->flags)) {
while (test_bit(PG_chainlock, &page->flags))
@@ -350,6 +351,7 @@
#ifdef CONFIG_SMP
clear_bit(PG_chainlock, &page->flags);
#endif
+ preempt_enable();
}

/*
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

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