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/stat.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/stat.c')
-rw-r--r-- | runtime/stat.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); |