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/stat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'runtime/stat.c') diff --git a/runtime/stat.c b/runtime/stat.c index 8bd7bf12..e40a4f2d 100644 --- a/runtime/stat.c +++ b/runtime/stat.c @@ -109,7 +109,7 @@ Stat _stp_stat_init (int type, ...) #if NEED_STAT_LOCKS == 1 { int i; - for_each_cpu(i) { + stp_for_each_cpu(i) { stat *sdp = per_cpu_ptr (sd, i); spin_lock_init(sdp->lock); } @@ -210,7 +210,7 @@ stat *_stp_stat_get (Stat st, int clear) STAT_LOCK(agg); _stp_stat_clear_data (st, agg); - for_each_cpu(i) { + stp_for_each_cpu(i) { stat *sd = per_cpu_ptr (st->sd, i); STAT_LOCK(sd); if (sd->count) { @@ -245,7 +245,7 @@ stat *_stp_stat_get (Stat st, int clear) void _stp_stat_clear (Stat st) { int i; - for_each_cpu(i) { + stp_for_each_cpu(i) { stat *sd = per_cpu_ptr (st->sd, i); STAT_LOCK(sd); _stp_stat_clear_data (st, sd); -- cgit