summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhunt <hunt>2005-06-23 06:52:46 +0000
committerhunt <hunt>2005-06-23 06:52:46 +0000
commit646c2bc0342790d77754fb1eab4dd0e473664ca2 (patch)
tree3664c17c62dd780699f1f8ed56ba39220fde54ec
parent9c6279e746f62b09852bd1c1449b4549b3512f70 (diff)
downloadsystemtap-steved-646c2bc0342790d77754fb1eab4dd0e473664ca2.tar.gz
systemtap-steved-646c2bc0342790d77754fb1eab4dd0e473664ca2.tar.xz
systemtap-steved-646c2bc0342790d77754fb1eab4dd0e473664ca2.zip
2005-06-22 Martin Hunt <hunt@redhat.com>
* runtime.h: Include config.h first then redefine CONFIG_SMP and NR_CPUS.
-rw-r--r--runtime/user/ChangeLog5
-rw-r--r--runtime/user/runtime.h3
2 files changed, 7 insertions, 1 deletions
diff --git a/runtime/user/ChangeLog b/runtime/user/ChangeLog
new file mode 100644
index 00000000..13350a65
--- /dev/null
+++ b/runtime/user/ChangeLog
@@ -0,0 +1,5 @@
+2005-06-22 Martin Hunt <hunt@redhat.com>
+
+ * runtime.h: Include config.h first then redefine CONFIG_SMP
+ and NR_CPUS.
+
diff --git a/runtime/user/runtime.h b/runtime/user/runtime.h
index 30491543..7a07afba 100644
--- a/runtime/user/runtime.h
+++ b/runtime/user/runtime.h
@@ -5,11 +5,12 @@
*/
#define __KERNEL__
-#include <linux/module.h>
+#include <linux/config.h>
#undef CONFIG_NR_CPUS
#undef CONFIG_SMP
#define CONFIG_NR_CPUS 8
#define CONFIG_SMP
+#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/miscdevice.h>
#include <linux/init.h>