diff options
author | hunt <hunt> | 2007-01-30 17:13:46 +0000 |
---|---|---|
committer | hunt <hunt> | 2007-01-30 17:13:46 +0000 |
commit | d21d36c05265b136246ae2c4ee9b5a38af46f45c (patch) | |
tree | 956b757db51e63729c30ca75c2aaccfbaf83e9e2 /runtime/map.c | |
parent | 09ebc996d1301f24f28e2b2b4114935982690464 (diff) | |
download | systemtap-steved-d21d36c05265b136246ae2c4ee9b5a38af46f45c.tar.gz systemtap-steved-d21d36c05265b136246ae2c4ee9b5a38af46f45c.tar.xz systemtap-steved-d21d36c05265b136246ae2c4ee9b5a38af46f45c.zip |
2007-01-30 Martin Hunt <hunt@redhat.com>
* 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().
Diffstat (limited to 'runtime/map.c')
-rw-r--r-- | runtime/map.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |