Re: [PATCH 01/11] [POWERPC] Add 'machine: ...' line to common show_cpuinfo()

2007-10-25 Thread Marian Balakowicz
Milton Miller wrote: > On Wed Oct 24 17:11:29 EST 2007, Stephen Rothwell wrote: >> On Wed, 24 Oct 2007 01:13:09 +0200 Marian Balakowicz wrote: >>> + root = of_find_node_by_path("/"); >>> + if (root) >>> + model = of_get_property(root, "model", NULL); >>> +

Re: [PATCH 01/11] [POWERPC] Add 'machine: ...' line to common show_cpuinfo()

2007-10-25 Thread Marian Balakowicz
David Gibson wrote: > On Wed, Oct 24, 2007 at 01:13:09AM +0200, Marian Balakowicz wrote: >> Print out '/model' property as a machine name in generic >> show_cpuinfo() routine. > > There's no such thing as /model; subnodes and properties have a > different namespace, so the root node, /, has a prop

Re: [PATCH 01/11] [POWERPC] Add 'machine: ...' line to common show_cpuinfo()

2007-10-24 Thread Milton Miller
On Wed Oct 24 17:11:29 EST 2007, Stephen Rothwell wrote: > On Wed, 24 Oct 2007 01:13:09 +0200 Marian Balakowicz wrote: >> >> +root = of_find_node_by_path("/"); >> +if (root) >> +model = of_get_property(root, "model", NULL); >> +of_node_put(ro

Re: [PATCH 01/11] [POWERPC] Add 'machine: ...' line to common show_cpuinfo()

2007-10-24 Thread Stephen Rothwell
On Wed, 24 Oct 2007 01:13:09 +0200 Marian Balakowicz <[EMAIL PROTECTED]> wrote: > > + root = of_find_node_by_path("/"); > + if (root) > + model = of_get_property(root, "model", NULL); > + of_node_put(root); The paranoid part of me says:

Re: [PATCH 01/11] [POWERPC] Add 'machine: ...' line to common show_cpuinfo()

2007-10-23 Thread Olof Johansson
On Wed, Oct 24, 2007 at 01:13:09AM +0200, Marian Balakowicz wrote: > Print out '/model' property as a machine name in generic > show_cpuinfo() routine. Excellent! I was thinking about adding this just the other day since I couldn't tell which kind of board I was on. > Signed-off-by: Marian Balako

Re: [PATCH 01/11] [POWERPC] Add 'machine: ...' line to common show_cpuinfo()

2007-10-23 Thread David Gibson
On Wed, Oct 24, 2007 at 01:13:09AM +0200, Marian Balakowicz wrote: > Print out '/model' property as a machine name in generic > show_cpuinfo() routine. There's no such thing as /model; subnodes and properties have a different namespace, so the root node, /, has a property named 'model'. Yes, it's

[PATCH 01/11] [POWERPC] Add 'machine: ...' line to common show_cpuinfo()

2007-10-23 Thread Marian Balakowicz
Print out '/model' property as a machine name in generic show_cpuinfo() routine. Signed-off-by: Marian Balakowicz <[EMAIL PROTECTED]> --- arch/powerpc/kernel/setup-common.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/kernel/setup-common.c b/arch