summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhunt <hunt>2005-11-08 19:58:42 +0000
committerhunt <hunt>2005-11-08 19:58:42 +0000
commite4df1d1b938bd5aca7303aedaee63d336d029d10 (patch)
treee940025be27d6149aa1afecd67f3e2d91cfaf056
parent7ba70af105ed918b5b07e5bba8b5d27a8d911249 (diff)
downloadsystemtap-steved-e4df1d1b938bd5aca7303aedaee63d336d029d10.tar.gz
systemtap-steved-e4df1d1b938bd5aca7303aedaee63d336d029d10.tar.xz
systemtap-steved-e4df1d1b938bd5aca7303aedaee63d336d029d10.zip
2005-11-08 Martin Hunt <hunt@redhat.com>
* alloc.c (__stp_valloc_percpu): Fix call to vmalloc_node.
-rw-r--r--runtime/ChangeLog4
-rw-r--r--runtime/alloc.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/runtime/ChangeLog b/runtime/ChangeLog
index 01772044..8ba8be42 100644
--- a/runtime/ChangeLog
+++ b/runtime/ChangeLog
@@ -1,5 +1,9 @@
2005-11-08 Martin Hunt <hunt@redhat.com>
+ * alloc.c (__stp_valloc_percpu): Fix call to vmalloc_node.
+
+2005-11-08 Martin Hunt <hunt@redhat.com>
+
* map.c (_stp_map_init): New function. Extracted from _stp_map_new()
so it can be used in _stp_pmap_new().
(_stp_map_new): Call _stp_map_init().
diff --git a/runtime/alloc.c b/runtime/alloc.c
index c2c3d010..99ae90ce 100644
--- a/runtime/alloc.c
+++ b/runtime/alloc.c
@@ -157,8 +157,7 @@ static void *__stp_valloc_percpu(size_t size, size_t align)
for (i = 0; i < NR_CPUS; i++) {
if (!cpu_possible(i))
continue;
- pdata->ptrs[i] = vmalloc_node(size, GFP_KERNEL,
- cpu_to_node(i));
+ pdata->ptrs[i] = vmalloc_node(size, cpu_to_node(i));
if (!pdata->ptrs[i])
goto unwind_oom;