diff options
author | Josh Stone <joshua.i.stone@intel.com> | 2008-07-24 12:40:45 -0700 |
---|---|---|
committer | Josh Stone <joshua.i.stone@intel.com> | 2008-07-24 12:52:01 -0700 |
commit | c2ffad100c432176c537aca673b796a7605cad1c (patch) | |
tree | 8836ee4129d659d5c01868e0fdc586a45895d3d8 /runtime/autoconf-oneachcpu-retry.c | |
parent | 026ba67c4d44b634fea8b259c531f228b1b819aa (diff) | |
download | systemtap-steved-c2ffad100c432176c537aca673b796a7605cad1c.tar.gz systemtap-steved-c2ffad100c432176c537aca673b796a7605cad1c.tar.xz systemtap-steved-c2ffad100c432176c537aca673b796a7605cad1c.zip |
Fix on_each_cpu() call for kernels >2.6.26.
This is a generalization of the patch from James Bottomley:
http://sources.redhat.com/ml/systemtap/2008-q3/msg00220.html
The on_each_cpu() change was merged *after* the 2.6.26 release, so I'm
using an autoconf test instead of James' version check.
Diffstat (limited to 'runtime/autoconf-oneachcpu-retry.c')
-rw-r--r-- | runtime/autoconf-oneachcpu-retry.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/autoconf-oneachcpu-retry.c b/runtime/autoconf-oneachcpu-retry.c new file mode 100644 index 00000000..304d9842 --- /dev/null +++ b/runtime/autoconf-oneachcpu-retry.c @@ -0,0 +1,7 @@ +#include <linux/smp.h> + +void ____autoconf_func(void) +{ + /* Older on_each_cpu() calls had a "retry" parameter */ + (void)on_each_cpu(NULL, NULL, 0, 0); +} |