summaryrefslogtreecommitdiffstats
path: root/runtime/runtime.h
diff options
context:
space:
mode:
authorhunt <hunt>2006-07-12 20:16:08 +0000
committerhunt <hunt>2006-07-12 20:16:08 +0000
commit4eb3a7f59e23c9342fc40db9206d6ac98c2f7ca3 (patch)
treee191ac6f08b025cdff45ff3bce4bff68ca87adc2 /runtime/runtime.h
parent04ef3bc4124184ef4f4179a1b516ae0c555c61ac (diff)
downloadsystemtap-steved-4eb3a7f59e23c9342fc40db9206d6ac98c2f7ca3.tar.gz
systemtap-steved-4eb3a7f59e23c9342fc40db9206d6ac98c2f7ca3.tar.xz
systemtap-steved-4eb3a7f59e23c9342fc40db9206d6ac98c2f7ca3.zip
2006-07-12 Martin Hunt <hunt@redhat.com>
* runtime.h (for_each_cpu): Define for new kernels which no longer define it.
Diffstat (limited to 'runtime/runtime.h')
-rw-r--r--runtime/runtime.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/runtime.h b/runtime/runtime.h
index fe176ab0..7a614163 100644
--- a/runtime/runtime.h
+++ b/runtime/runtime.h
@@ -31,6 +31,10 @@
#include <linux/kallsyms.h>
#include <linux/version.h>
+#ifndef for_each_cpu
+#define for_each_cpu(cpu) for_each_cpu_mask((cpu), cpu_possible_map)
+#endif
+
#ifdef DEBUG
/** Prints debug line.
* This function prints a debug message immediately to stpd.