From d21d36c05265b136246ae2c4ee9b5a38af46f45c Mon Sep 17 00:00:00 2001 From: hunt Date: Tue, 30 Jan 2007 17:13:46 +0000 Subject: 2007-01-30 Martin Hunt * alloc.c (_stp_alloc_percpu): Don't implement our own; just call __alloc_percpu with appropriate args for the OS version. (_stp_free_percpu): Delete. * map.c (_stp_map_init): When calling kmalloc_node, first call cpu_to_node() to get the proper node number. * stat.c (_stp_stat_del): Call free_percpu() instead of _stp_free_percpu(). --- runtime/map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/map.c') diff --git a/runtime/map.c b/runtime/map.c index 86a1b270..9fc414a7 100644 --- a/runtime/map.c +++ b/runtime/map.c @@ -207,7 +207,7 @@ static int _stp_map_init(MAP m, unsigned max_entries, int type, int key_size, in if (cpu < 0) tmp = kmalloc(size, STP_ALLOC_FLAGS); else - tmp = kmalloc_node(size, STP_ALLOC_FLAGS, cpu); + tmp = kmalloc_node(size, STP_ALLOC_FLAGS, cpu_to_node(cpu)); if (!tmp) return -1; -- cgit