Hi,
I had two compile problems:
1) sched.c complains about missing local_bh_count, TQUEUE_BH, ...
2) init/do_mounts.c complains about SCHED_YIELD (if initrd is enabled)
The following patch fixes both problems for me.
--nk
diff -ur linux/init/do_mounts.c linux-nk/init/do_mounts.c
--- linux/init/do_mounts.c Sun Apr 21 23:04:20 2002
+++ linux-nk/init/do_mounts.c Sun Apr 21 21:01:41 2002
@@ -775,8 +775,7 @@
pid = kernel_thread(do_linuxrc, "/linuxrc", SIGCHLD);
if (pid > 0) {
while (pid != wait(&i)) {
- current->policy |= SCHED_YIELD;
- schedule();
+ yield();
}
}
diff -ur linux/kernel/sched.c linux-nk/kernel/sched.c
--- linux/kernel/sched.c Sun Apr 21 23:16:06 2002
+++ linux-nk/kernel/sched.c Sun Apr 21 21:24:59 2002
@@ -19,6 +19,7 @@
#include <linux/smp_lock.h>
#include <asm/mmu_context.h>
#include <linux/kernel_stat.h>
+#include <linux/interrupt.h>
/*
* Priority of a process goes from 0 to MAX_PRIO-1. The
-- Key fingerprint = 6C58 F18D 4747 3295 F2DB 15C1 3882 4302 F8B4 C11C
- 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/
This archive was generated by hypermail 2b29 : Tue Apr 23 2002 - 22:00:30 EST