From a432e18a24569804c82f14b36ae7d8dfcc245da7 Mon Sep 17 00:00:00 2001 From: hunt Date: Mon, 28 Nov 2005 22:08:39 +0000 Subject: 2005-11-28 Martin Hunt * alloc.c (__stp_valloc_percpu): Use same code for up and smp. (_stp_per_cpu_ptr): New macro. * user/alloc.c: Ditto. * map.c: Use _stp_map_cpu_ptr(). * map-stat.c: Ditto. * pmap-gen.c: Ditto. * runtime.h: Include alloc.c * user/runtime.h: Ditto. --- runtime/map-stat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/map-stat.c') diff --git a/runtime/map-stat.c b/runtime/map-stat.c index 51377d00..c9ba4b02 100644 --- a/runtime/map-stat.c +++ b/runtime/map-stat.c @@ -79,7 +79,7 @@ static MAP _stp_pmap_new_hstat_linear (unsigned max_entries, int ksize, int star int i; MAP m; for_each_cpu(i) { - m = per_cpu_ptr (map, i); + m = _stp_per_cpu_ptr (map, i); m->hist.type = HIST_LINEAR; m->hist.start = start; m->hist.stop = stop; @@ -106,7 +106,7 @@ static MAP _stp_pmap_new_hstat_log (unsigned max_entries, int key_size, int buck int i; MAP m; for_each_cpu(i) { - m = per_cpu_ptr (map, i); + m = _stp_per_cpu_ptr (map, i); m->hist.type = HIST_LOG; m->hist.buckets = buckets; } -- cgit