[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090421180514.GB2763@alberich.amd.com>
Date: Tue, 21 Apr 2009 20:05:14 +0200
From: Andreas Herrmann <andreas.herrmann3@....com>
To: Yinghai Lu <yhlu.kernel@...il.com>
CC: Ingo Molnar <mingo@...e.hu>, jbarnes@...tuousgeek.org,
"H. Peter Anvin" <hpa@...or.com>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] pci: derive nearby CPUs from device's instead of bus'
NUMA information
On Mon, Apr 20, 2009 at 02:23:47PM -0700, Yinghai Lu wrote:
> On Mon, Apr 20, 2009 at 1:47 AM, Andreas Herrmann
> <andreas.herrmann3@....com> wrote:
> > During initialization the struct device's numa_node is set to -1 and
> > later on the information is inherited from the parent numa_node.
> >
> parent numa_node could be -1 too.
>
> in amd_bus.c
> int get_mp_bus_to_node(int busnum)
> {
> int node = -1;
>
> if (busnum < 0 || busnum > (BUS_NR - 1))
> return node;
>
> node = mp_bus_to_node[busnum];
>
> /*
> * let numa_node_id to decide it later in dma_alloc_pages
> * if there is no ram on that node
> */
> if (node != -1 && !node_online(node))
> node = -1;
>
> return node;
> }
Ok, I see.
Thanks,
Andreas
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists