From a6ce170764b0ec75d3ddbca20823b2a951a225d2 Mon Sep 17 00:00:00 2001 From: Wenji Huang Date: Mon, 17 Nov 2008 00:06:59 -0500 Subject: Fix the conflicted for_each_cpu macro with 2.6.28. --- runtime/counter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/counter.c') 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; -- cgit