diff options
author | hunt <hunt> | 2005-11-08 23:00:39 +0000 |
---|---|---|
committer | hunt <hunt> | 2005-11-08 23:00:39 +0000 |
commit | e8fd2f2631965df59fdd3e263aae9ef3721306da (patch) | |
tree | d9267bb786100fd1524bee312adae4a5b078cf5b /runtime/alloc.c | |
parent | 9c88726305d231826513bc04359ae24b41c4b465 (diff) | |
download | systemtap-steved-e8fd2f2631965df59fdd3e263aae9ef3721306da.tar.gz systemtap-steved-e8fd2f2631965df59fdd3e263aae9ef3721306da.tar.xz systemtap-steved-e8fd2f2631965df59fdd3e263aae9ef3721306da.zip |
2005-11-08 Martin Hunt <hunt@redhat.com>
* alloc.c (__stp_valloc_percpu): Fix call to vmalloc_node.
(vmalloc_node): Remove nonworking code.
Diffstat (limited to 'runtime/alloc.c')
-rw-r--r-- | runtime/alloc.c | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/runtime/alloc.c b/runtime/alloc.c index 41084eff..8f34dea3 100644 --- a/runtime/alloc.c +++ b/runtime/alloc.c @@ -35,27 +35,8 @@ * switch if is is easily backported. */ #ifdef CONFIG_NUMA -void *vmalloc_node(unsigned long size, int node) -{ - void *result; - struct mempolicy *oldpol = current->mempolicy; - mm_segment_t oldfs = get_fs(); - DECLARE_BITMAP(prefnode, MAX_NUMNODES); - - mpol_get(oldpol); - bitmap_zero(prefnode, MAX_NUMNODES); - set_bit(node, prefnode); - - set_fs(KERNEL_DS); - sys_set_mempolicy(MPOL_PREFERRED, prefnode, MAX_NUMNODES); - set_fs(oldfs); - - result = vmalloc(size); - - mpol_free(current->mempolicy); - current->mempolicy = oldpol; - return result; -} +/* Until we get something working */ +#define vmalloc_node(size,node) vmalloc(size) #else #define vmalloc_node(size,node) vmalloc(size) #endif /* CONFIG_NUMA */ |