Re: [PATCH] x86-32: Allocate irq stacks seperate from percpu area

From: Peter Zijlstra
Date: Wed Oct 27 2010 - 05:57:48 EST


On Wed, 2010-10-27 at 08:07 +0200, Eric Dumazet wrote:
> > - irqctx = &per_cpu(hardirq_stack, cpu);
> > + irqctx = (union irq_ctx *)__get_free_pages(THREAD_FLAGS, THREAD_ORDER);
>
> Hmm, then we lose NUMA affinity for stacks.

I guess we could use:

alloc_pages_node(cpu_to_node(cpu), THREAD_FLAGS, THREAD_ORDER);


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/