From c2ffad100c432176c537aca673b796a7605cad1c Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Thu, 24 Jul 2008 12:40:45 -0700 Subject: 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. --- runtime/time.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'runtime/time.c') 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()) { -- cgit