diff options
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/ChangeLog | 1 | ||||
-rw-r--r-- | runtime/autoconf-oneachcpu-retry.c | 7 | ||||
-rw-r--r-- | runtime/time.c | 4 |
3 files changed, 12 insertions, 0 deletions
diff --git a/runtime/ChangeLog b/runtime/ChangeLog index 9e4c3ec6..a8d73ffd 100644 --- a/runtime/ChangeLog +++ b/runtime/ChangeLog @@ -1,6 +1,7 @@ 2008-07-24 Josh Stone <joshua.i.stone@intel.com> * runtime/autoconf-module-nsections.c: removed + * runtime/autoconf-oneachcpu-retry.c: added 2008-07-21 David Smith <dsmith@redhat.com> 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); +} diff --git a/runtime/time.c b/runtime/time.c index 8a0b6fad..6b01cebe 100644 --- a/runtime/time.c +++ b/runtime/time.c @@ -237,7 +237,11 @@ _stp_init_time(void) return -1; stp_timer_reregister = 1; +#ifdef STAPCONF_ONEACHCPU_RETRY ret = on_each_cpu(__stp_init_time, NULL, 0, 1); +#else + ret = on_each_cpu(__stp_init_time, NULL, 1); +#endif #ifdef CONFIG_CPU_FREQ if (!ret && !__stp_constant_freq()) { |