summaryrefslogtreecommitdiffstats
path: root/mm/mempolicy.c
diff options
context:
space:
mode:
authorChristoph Lameter2006-01-19 02:42:37 +0100
committerLinus Torvalds2006-01-19 04:20:18 +0100
commit86c562a9d6683063e071692fe14e0a18e64ee1be (patch)
treedd64f8bff4624f17f2245aeadf962e0d6d5974a0 /mm/mempolicy.c
parent[PATCH] NUMA policies in the slab allocator V2 (diff)
downloadkernel-qcow2-linux-86c562a9d6683063e071692fe14e0a18e64ee1be.tar.gz
kernel-qcow2-linux-86c562a9d6683063e071692fe14e0a18e64ee1be.tar.xz
kernel-qcow2-linux-86c562a9d6683063e071692fe14e0a18e64ee1be.zip
[PATCH] mm: optimize numa policy handling in slab allocator
Move the interrupt check from slab_node into ___cache_alloc and adds an "unlikely()" to avoid pipeline stalls on some architectures. Signed-off-by: Christoph Lameter <clameter@sgi.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/mempolicy.c')
-rw-r--r--mm/mempolicy.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/mm/mempolicy.c b/mm/mempolicy.c
index 71430d440822..73790188b0eb 100644
--- a/mm/mempolicy.c
+++ b/mm/mempolicy.c
@@ -982,9 +982,6 @@ static unsigned interleave_nodes(struct mempolicy *policy)
*/
unsigned slab_node(struct mempolicy *policy)
{
- if (in_interrupt())
- return numa_node_id();
-
switch (policy->policy) {
case MPOL_INTERLEAVE:
return interleave_nodes(policy);