Re: [PATCH 1/2] gpio-pch: Use NUMA_NO_NODE not GFP_KERNEL

From: David Rientjes
Date: Tue Oct 18 2011 - 22:00:06 EST


On Wed, 19 Oct 2011, Tomoya MORINAGA wrote:

> Currently, GFP_KERNEL is used as parameter of irq_alloc_descs like below.
>
> irq_base = irq_alloc_descs(-1, IOH_IRQ_BASE, num_ports[j],
> GFP_KERNEL);
>
> This is not true.
> So, this patch uses NUMA_NO_NODE not GFP_KERNEL.
>

Passing NUMA_NO_NODE means the allocation will be preferred on a node that
is local to the executing processor.

> Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
> Reported-by: David Rientjes <rientjes@xxxxxxxxxx>
> Signed-off-by: Tomoya MORINAGA <tomoya-linux@xxxxxxxxxxxxxxxxxx>

Acked-by: David Rientjes <rientjes@xxxxxxxxxx>
--
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/