[PATCH] fix include/linux/smp.h

Paul Mackerras (paulus@samba.org)
Thu, 4 Apr 2002 13:52:11 +1000 (EST)


Linus,

This patch adds #include <linux/threads.h> to include/linux/smp.h,
because it (smp.h) needs the definition of NR_CPUS. (It so happens
that include/asm-i386/smp.h includes <linux/threads.h>, but IMHO
include/linux/smp.h shouldn't rely on that).

Please apply this patch to your 2.5 tree.

Paul.

diff -urN linux-2.5/include/linux/smp.h pmac-2.5/include/linux/smp.h
--- linux-2.5/include/linux/smp.h Sat Mar 9 22:26:16 2002
+++ pmac-2.5/include/linux/smp.h Sat Mar 16 11:08:49 2002
@@ -12,6 +12,7 @@

#include <linux/kernel.h>
#include <linux/compiler.h>
+#include <linux/threads.h>
#include <asm/smp.h>

/*
-
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/