diff options
-rw-r--r-- | runtime/ChangeLog | 1 | ||||
-rw-r--r-- | runtime/alloc.c | 23 |
2 files changed, 3 insertions, 21 deletions
diff --git a/runtime/ChangeLog b/runtime/ChangeLog index 8ba8be42..65f75ea1 100644 --- a/runtime/ChangeLog +++ b/runtime/ChangeLog @@ -1,6 +1,7 @@ 2005-11-08 Martin Hunt <hunt@redhat.com> * alloc.c (__stp_valloc_percpu): Fix call to vmalloc_node. + (vmalloc_node): Remove nonworking code. 2005-11-08 Martin Hunt <hunt@redhat.com> 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 */ |