diff options
author | Wenji Huang <wenji.huang@oracle.com> | 2008-11-17 00:06:59 -0500 |
---|---|---|
committer | Wenji Huang <wenji.huang@oracle.com> | 2008-11-17 00:06:59 -0500 |
commit | a6ce170764b0ec75d3ddbca20823b2a951a225d2 (patch) | |
tree | 8e1534f74dfb3cd53305a71c4ec07f1fd71da706 /runtime/counter.c | |
parent | b3e8f644958f5033beebeb91edf11d5edf21c8c1 (diff) | |
download | systemtap-steved-a6ce170764b0ec75d3ddbca20823b2a951a225d2.tar.gz systemtap-steved-a6ce170764b0ec75d3ddbca20823b2a951a225d2.tar.xz systemtap-steved-a6ce170764b0ec75d3ddbca20823b2a951a225d2.zip |
Fix the conflicted for_each_cpu macro with 2.6.28.
Diffstat (limited to 'runtime/counter.c')
-rw-r--r-- | runtime/counter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/counter.c b/runtime/counter.c index d0376547..a3c3669b 100644 --- a/runtime/counter.c +++ b/runtime/counter.c @@ -58,7 +58,7 @@ Counter _stp_counter_init (void) #if NEED_COUNTER_LOCKS == 1 { int i; - for_each_cpu(i) { + stp_for_each_cpu(i) { Counter c = per_cpu_ptr (cnt, i); spin_lock_init(c->lock); } @@ -119,7 +119,7 @@ int64_t _stp_counter_get (Counter cnt, int clear) int i; int64_t sum = 0; - for_each_cpu(i) { + stp_for_each_cpu(i) { Counter c = per_cpu_ptr (cnt, i); COUNTER_LOCK(c); sum += c->count; |