Re: [PATCH 1/4] try parent numa_node at first before using default

2007-07-09 Thread Yinghai Lu
On 7/9/07, Greg KH <[EMAIL PROTECTED]> wrote: On Mon, Jul 09, 2007 at 05:52:34PM -0700, Christoph Lameter wrote: > It means that the node for the device is the same as the parent device. > F.e. if the parent device is a bus that is connected to node 4 then all > the devices hooked up to the bus a

Re: [PATCH 1/4] try parent numa_node at first before using default

2007-07-09 Thread Greg KH
On Mon, Jul 09, 2007 at 05:52:34PM -0700, Christoph Lameter wrote: > On Mon, 9 Jul 2007, Greg KH wrote: > > > > @@ -547,6 +547,8 @@ static void klist_children_put(struct klist_node *n) > > > > > > void device_initialize(struct device *dev) > > > { > > > + int node; > > > + > > > kobj_set_kse

Re: [PATCH 1/4] try parent numa_node at first before using default

2007-07-09 Thread Yinghai Lu
Greg KH wrote: On Tue, Jul 03, 2007 at 05:31:02PM -0700, Yinghai Lu wrote: [PATCH 1/4] try parent numa_node at first before using default What is this going to give us? you can use dev_to_node(netdev->dev) or dev_to_node(usb_device->dev) directly, and don't need to go to find pc

Re: [PATCH 1/4] try parent numa_node at first before using default

2007-07-09 Thread Christoph Lameter
On Mon, 9 Jul 2007, Greg KH wrote: > > @@ -547,6 +547,8 @@ static void klist_children_put(struct klist_node *n) > > > > void device_initialize(struct device *dev) > > { > > + int node; > > + > > kobj_set_kset_s(dev, devices_subsys); > > kobject_init(&dev->kobj); > > klist_init(&d

Re: [PATCH 1/4] try parent numa_node at first before using default

2007-07-09 Thread Greg KH
On Tue, Jul 03, 2007 at 05:31:02PM -0700, Yinghai Lu wrote: > [PATCH 1/4] try parent numa_node at first before using default > > Signed-off-by: Yinghai Lu <[EMAIL PROTECTED]> > > diff --git a/drivers/base/core.c b/drivers/base/core.c > index dd40d78..c344d82 100644 >

[PATCH 1/4] try parent numa_node at first before using default

2007-07-03 Thread Yinghai Lu
[PATCH 1/4] try parent numa_node at first before using default Signed-off-by: Yinghai Lu <[EMAIL PROTECTED]> diff --git a/drivers/base/core.c b/drivers/base/core.c index dd40d78..c344d82 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -547,6 +547,8 @@ static void klist_childr