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/pmap-gen.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'runtime/pmap-gen.c') diff --git a/runtime/pmap-gen.c b/runtime/pmap-gen.c index 8666549b..7f7ddeb0 100644 --- a/runtime/pmap-gen.c +++ b/runtime/pmap-gen.c @@ -406,7 +406,7 @@ PMAP KEYSYM(_stp_pmap_new) (unsigned max_entries) if (pmap) { int i; MAP m; - for_each_cpu(i) { + stp_for_each_cpu(i) { m = (MAP)per_cpu_ptr (pmap->map, i); m->get_key = KEYSYM(pmap_get_key); m->copy = KEYSYM(pmap_copy_keys); @@ -459,7 +459,7 @@ PMAP KEYSYM(_stp_pmap_new) (unsigned max_entries, int htype, ...) if (pmap) { int i; MAP m; - for_each_cpu(i) { + stp_for_each_cpu(i) { m = per_cpu_ptr (pmap->map, i); m->get_key = KEYSYM(pmap_get_key); m->copy = KEYSYM(pmap_copy_keys); @@ -649,7 +649,7 @@ VALTYPE KEYSYM(_stp_pmap_get) (PMAP pmap, ALLKEYSD(key)) } /* now total each cpu */ - for_each_cpu(cpu) { + stp_for_each_cpu(cpu) { map = per_cpu_ptr (pmap->map, cpu); head = &map->hashes[hv]; -- cgit