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/transport/procfs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'runtime/transport/procfs.c') diff --git a/runtime/transport/procfs.c b/runtime/transport/procfs.c index e0ecd9b3..ca33e0fd 100644 --- a/runtime/transport/procfs.c +++ b/runtime/transport/procfs.c @@ -328,7 +328,7 @@ static int _stp_register_ctl_channel(void) #ifdef STP_BULKMODE /* now for each cpu "n", create /proc/systemtap/module_name/n */ - for_each_cpu(i) { + stp_for_each_cpu(i) { sprintf(buf, "%d", i); de = create_proc_entry(buf, 0600, _stp_proc_root); if (de == NULL) @@ -361,7 +361,7 @@ err1: #ifdef STP_BULKMODE for (de = _stp_proc_root->subdir; de; de = de->next) _stp_kfree(de->data); - for_each_cpu(j) { + stp_for_each_cpu(j) { if (j == i) break; sprintf(buf, "%d", j); @@ -389,7 +389,7 @@ static void _stp_unregister_ctl_channel(void) for (de = _stp_proc_root->subdir; de; de = de->next) _stp_kfree(de->data); - for_each_cpu(i) { + stp_for_each_cpu(i) { sprintf(buf, "%d", i); remove_proc_entry(buf, _stp_proc_root); } -- cgit