diff options
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; |