summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--runtime/ChangeLog5
-rw-r--r--runtime/runtime.h4
2 files changed, 9 insertions, 0 deletions
diff --git a/runtime/ChangeLog b/runtime/ChangeLog
index c41e28d2..84f4ce5d 100644
--- a/runtime/ChangeLog
+++ b/runtime/ChangeLog
@@ -1,3 +1,8 @@
+2006-07-12 Martin Hunt <hunt@redhat.com>
+
+ * runtime.h (for_each_cpu): Define for new kernels
+ which no longer define it.
+
2006-07-11 Martin Hunt <hunt@redhat.com>
* string.c (_stp_text_str): Use __get_user().
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.