diff options
author | hunt <hunt> | 2006-07-12 20:16:08 +0000 |
---|---|---|
committer | hunt <hunt> | 2006-07-12 20:16:08 +0000 |
commit | 4eb3a7f59e23c9342fc40db9206d6ac98c2f7ca3 (patch) | |
tree | e191ac6f08b025cdff45ff3bce4bff68ca87adc2 | |
parent | 04ef3bc4124184ef4f4179a1b516ae0c555c61ac (diff) | |
download | systemtap-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.
-rw-r--r-- | runtime/ChangeLog | 5 | ||||
-rw-r--r-- | runtime/runtime.h | 4 |
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. |