From 8d948813b76c1cbeb91379c3a701b95114266243 Mon Sep 17 00:00:00 2001 From: hunt Date: Thu, 10 Nov 2005 21:22:35 +0000 Subject: 2005-11-10 Martin Hunt * map.c: Doc updates. * pmap-gen.c: Change a bunch of generated function names to avoid conflicts with maps with the same key and value types. --- runtime/alloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/alloc.c') diff --git a/runtime/alloc.c b/runtime/alloc.c index 8f34dea3..b647a532 100644 --- a/runtime/alloc.c +++ b/runtime/alloc.c @@ -115,7 +115,7 @@ void *_stp_valloc_cpu(size_t len, int cpu) struct _stp_percpu_data { void *ptrs[NR_CPUS]; - void *blkp; + void *data; }; #ifdef CONFIG_SMP @@ -187,7 +187,7 @@ void _stp_vfree_percpu(const void *ptr) #define _stp_valloc_percpu(type) \ ((type *)(__stp_valloc_percpu(sizeof(type), __alignof__(type)))) -#define _stp_percpu_dptr(ptr) (((struct _stp_percpu_data *)~(unsigned long)(ptr))->blkp) +#define _stp_percpu_dptr(ptr) (((struct _stp_percpu_data *)~(unsigned long)(ptr))->data) /** Frees memory allocated by _stp_alloc or _stp_calloc. * @param ptr pointer to memory to free -- cgit