Skip to contentSkip to conversation

(Updated) Preemptible Kernel

PATCH Robert Love 1 participant 1 message Sep 9, 2001 MM core

lore
Share & tools
lore
#0 lore raw

Quick update:

pre6-preempt patch is up at:
http://tech9.net/rml/linux/patch-rml-2.4.10-pre6-preempt-kernel-1

pre5 does not diff cleanly against pre6, so use this if you are using Linus's tree. this patch contains the ieee1394 fix, too. highmem updates are still pending (see below).

2.4.9-ac10 is still at:
http://tech9.net/rml/linux/patch-rml-2.4.9-ac10-preempt-kernel-1

note this does not contain the ieee1394 fix or highmem update. as always, you can find the newest patches there, fairly quickly.

if you are using 2.4.9-ac10 or earlier or 2.4.10-pre5 or earlier and need the ieee1394 patch (fixes compile error) here it is (this is merged in 2.4.10-pre6-preempt and will be in the next acXX-preempt:)

drivers/ieee1394/csr.c +1 -0
diff -urN linux-2.4.9-ac10/drivers/ieee1394/ linux/drivers/ieee1394/csr.c
@@ -10,6 +10,7 @@
  */
 
 #include <linux/string.h>
+#include <linux/sched.h>
 
 #include "ieee1394_types.h"
 #include "hosts.h"

if you are using any patch, and are using highmem, here is an experimental patch that seems to work. a final version will be in future preempt patches:

include/linux/highmem.h Sun Sep 9 09:00:07 2001 renamed from include/linux/highmem.h Sun Sep 9 08:59:04 2001 +1 -0
@@ -88,6 +88,7 @@
        if (page < highmem_start_page)
                return page_address(page);
 
+       ctx_sw_off();
        idx = type + KM_TYPE_NR*smp_processor_id();
        vaddr = __fix_to_virt(FIX_KMAP_BEGIN + idx);

#if HIGHMEM_DEBUG
@@ -119,6 +120,7 @@

        pte_clear(kmap_pte-idx);
        __flush_tlb_one(vaddr);

#endif
+ ctx_sw_on();
}

#endif /* __KERNEL__ */

Signature · 3 lines
Robert M. Love
rml at ufl.edu
rml at tech9.net