Re: [RFC PATCH] drivers/base: use cpu->node_id for from_nid

2015-08-06 Thread Michael Holzheu
On Wed, 5 Aug 2015 13:51:21 -0700 Greg Kroah-Hartman wrote: > On Thu, Jul 30, 2015 at 08:35:51PM +0200, Michael Holzheu wrote: > > Hello Greg, > > > > Is it possible to use "from_nid = cpu->node_id"? > > > > Background: > > > > I am currently working on (fake) NUMA support for s390. At

Re: [RFC PATCH] drivers/base: use cpu-node_id for from_nid

2015-08-06 Thread Michael Holzheu
On Wed, 5 Aug 2015 13:51:21 -0700 Greg Kroah-Hartman gre...@linuxfoundation.org wrote: On Thu, Jul 30, 2015 at 08:35:51PM +0200, Michael Holzheu wrote: Hello Greg, Is it possible to use from_nid = cpu-node_id? Background: I am currently working on (fake) NUMA support for s390.

Re: [RFC PATCH] drivers/base: use cpu->node_id for from_nid

2015-08-05 Thread Greg Kroah-Hartman
On Thu, Jul 30, 2015 at 08:35:51PM +0200, Michael Holzheu wrote: > Hello Greg, > > Is it possible to use "from_nid = cpu->node_id"? > > Background: > > I am currently working on (fake) NUMA support for s390. At startup, for > "deconfigured" CPUs, we don't know to which nodes the CPUs belong.

Re: [RFC PATCH] drivers/base: use cpu-node_id for from_nid

2015-08-05 Thread Greg Kroah-Hartman
On Thu, Jul 30, 2015 at 08:35:51PM +0200, Michael Holzheu wrote: Hello Greg, Is it possible to use from_nid = cpu-node_id? Background: I am currently working on (fake) NUMA support for s390. At startup, for deconfigured CPUs, we don't know to which nodes the CPUs belong. Therefore we

[RFC PATCH] drivers/base: use cpu->node_id for from_nid

2015-07-30 Thread Michael Holzheu
Hello Greg, Is it possible to use "from_nid = cpu->node_id"? Background: I am currently working on (fake) NUMA support for s390. At startup, for "deconfigured" CPUs, we don't know to which nodes the CPUs belong. Therefore we always return node 0 for cpu_to_node(). For each present CPU the

[RFC PATCH] drivers/base: use cpu-node_id for from_nid

2015-07-30 Thread Michael Holzheu
Hello Greg, Is it possible to use from_nid = cpu-node_id? Background: I am currently working on (fake) NUMA support for s390. At startup, for deconfigured CPUs, we don't know to which nodes the CPUs belong. Therefore we always return node 0 for cpu_to_node(). For each present CPU the