linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] Drop redundant machine type print in show_cpuinfo
@ 2008-09-24 21:53 Becky Bruce
  2008-09-29 13:35 ` Kumar Gala
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Becky Bruce @ 2008-09-24 21:53 UTC (permalink / raw)
  To: linuxppc-dev

For many of the embedded boards, "model" and "Machine" are printing
the same thing; remove the redundant code and allow the generic
show_cpuinfo to print the model information.

Signed-off-by: Becky Bruce <becky.bruce@freescale.com>
---
 arch/powerpc/platforms/85xx/mpc85xx_ads.c         |    1 -
 arch/powerpc/platforms/85xx/sbc8560.c             |    1 -
 arch/powerpc/platforms/86xx/gef_sbc610.c          |    8 --------
 arch/powerpc/platforms/86xx/mpc86xx_hpcn.c        |    8 --------
 arch/powerpc/platforms/86xx/sbc8641d.c            |    8 --------
 arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c |    1 -
 6 files changed, 0 insertions(+), 27 deletions(-)

diff --git a/arch/powerpc/platforms/85xx/mpc85xx_ads.c b/arch/powerpc/platforms/85xx/mpc85xx_ads.c
index d17807a..0293e3d 100644
--- a/arch/powerpc/platforms/85xx/mpc85xx_ads.c
+++ b/arch/powerpc/platforms/85xx/mpc85xx_ads.c
@@ -213,7 +213,6 @@ static void mpc85xx_ads_show_cpuinfo(struct seq_file *m)
 	svid = mfspr(SPRN_SVR);
 
 	seq_printf(m, "Vendor\t\t: Freescale Semiconductor\n");
-	seq_printf(m, "Machine\t\t: mpc85xx\n");
 	seq_printf(m, "PVR\t\t: 0x%x\n", pvid);
 	seq_printf(m, "SVR\t\t: 0x%x\n", svid);
 
diff --git a/arch/powerpc/platforms/85xx/sbc8560.c b/arch/powerpc/platforms/85xx/sbc8560.c
index e0cf060..0c9a856 100644
--- a/arch/powerpc/platforms/85xx/sbc8560.c
+++ b/arch/powerpc/platforms/85xx/sbc8560.c
@@ -200,7 +200,6 @@ static void sbc8560_show_cpuinfo(struct seq_file *m)
 	svid = mfspr(SPRN_SVR);
 
 	seq_printf(m, "Vendor\t\t: Wind River\n");
-	seq_printf(m, "Machine\t\t: SBC8560\n");
 	seq_printf(m, "PVR\t\t: 0x%x\n", pvid);
 	seq_printf(m, "SVR\t\t: 0x%x\n", svid);
 
diff --git a/arch/powerpc/platforms/86xx/gef_sbc610.c b/arch/powerpc/platforms/86xx/gef_sbc610.c
index 3543a9e..8a9dee2 100644
--- a/arch/powerpc/platforms/86xx/gef_sbc610.c
+++ b/arch/powerpc/platforms/86xx/gef_sbc610.c
@@ -66,19 +66,11 @@ static void __init gef_sbc610_setup_arch(void)
 
 static void gef_sbc610_show_cpuinfo(struct seq_file *m)
 {
-	struct device_node *root;
 	uint memsize = total_memory;
-	const char *model = "";
 	uint svid = mfspr(SPRN_SVR);
 
 	seq_printf(m, "Vendor\t\t: GE Fanuc Intelligent Platforms\n");
 
-	root = of_find_node_by_path("/");
-	if (root)
-		model = of_get_property(root, "model", NULL);
-	seq_printf(m, "Machine\t\t: %s\n", model);
-	of_node_put(root);
-
 	seq_printf(m, "SVR\t\t: 0x%x\n", svid);
 	seq_printf(m, "Memory\t\t: %d MB\n", memsize / (1024 * 1024));
 }
diff --git a/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c b/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c
index f712d9c..2672829 100644
--- a/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c
+++ b/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c
@@ -101,19 +101,11 @@ mpc86xx_hpcn_setup_arch(void)
 static void
 mpc86xx_hpcn_show_cpuinfo(struct seq_file *m)
 {
-	struct device_node *root;
 	uint memsize = total_memory;
-	const char *model = "";
 	uint svid = mfspr(SPRN_SVR);
 
 	seq_printf(m, "Vendor\t\t: Freescale Semiconductor\n");
 
-	root = of_find_node_by_path("/");
-	if (root)
-		model = of_get_property(root, "model", NULL);
-	seq_printf(m, "Machine\t\t: %s\n", model);
-	of_node_put(root);
-
 	seq_printf(m, "SVR\t\t: 0x%x\n", svid);
 	seq_printf(m, "Memory\t\t: %d MB\n", memsize / (1024 * 1024));
 }
diff --git a/arch/powerpc/platforms/86xx/sbc8641d.c b/arch/powerpc/platforms/86xx/sbc8641d.c
index 00e6fad..da677a7 100644
--- a/arch/powerpc/platforms/86xx/sbc8641d.c
+++ b/arch/powerpc/platforms/86xx/sbc8641d.c
@@ -63,19 +63,11 @@ sbc8641_setup_arch(void)
 static void
 sbc8641_show_cpuinfo(struct seq_file *m)
 {
-	struct device_node *root;
 	uint memsize = total_memory;
-	const char *model = "";
 	uint svid = mfspr(SPRN_SVR);
 
 	seq_printf(m, "Vendor\t\t: Wind River Systems\n");
 
-	root = of_find_node_by_path("/");
-	if (root)
-		model = of_get_property(root, "model", NULL);
-	seq_printf(m, "Machine\t\t: %s\n", model);
-	of_node_put(root);
-
 	seq_printf(m, "SVR\t\t: 0x%x\n", svid);
 	seq_printf(m, "Memory\t\t: %d MB\n", memsize / (1024 * 1024));
 }
diff --git a/arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c b/arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c
index 84e2d78..7a2ba39 100644
--- a/arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c
+++ b/arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c
@@ -164,7 +164,6 @@ static void __init mpc7448_hpc2_init_IRQ(void)
 void mpc7448_hpc2_show_cpuinfo(struct seq_file *m)
 {
 	seq_printf(m, "vendor\t\t: Freescale Semiconductor\n");
-	seq_printf(m, "machine\t\t: MPC7448hpc2\n");
 }
 
 void mpc7448_hpc2_restart(char *cmd)
-- 
1.5.5.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] Drop redundant machine type print in show_cpuinfo
  2008-09-24 21:53 [PATCH 1/2] Drop redundant machine type print in show_cpuinfo Becky Bruce
@ 2008-09-29 13:35 ` Kumar Gala
  2008-09-29 13:56   ` Welch, Martyn (GE EntSol, Intelligent Platforms)
  2008-09-29 14:08 ` Paul Gortmaker
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 7+ messages in thread
From: Kumar Gala @ 2008-09-29 13:35 UTC (permalink / raw)
  To: Becky Bruce; +Cc: linuxppc-dev list, Martyn Welch, Paul Gortmaker


On Sep 24, 2008, at 4:53 PM, Becky Bruce wrote:

> For many of the embedded boards, "model" and "Machine" are printing
> the same thing; remove the redundant code and allow the generic
> show_cpuinfo to print the model information.
>
> Signed-off-by: Becky Bruce <becky.bruce@freescale.com>
> ---
> arch/powerpc/platforms/85xx/mpc85xx_ads.c         |    1 -
> arch/powerpc/platforms/85xx/sbc8560.c             |    1 -
> arch/powerpc/platforms/86xx/gef_sbc610.c          |    8 --------
> arch/powerpc/platforms/86xx/mpc86xx_hpcn.c        |    8 --------
> arch/powerpc/platforms/86xx/sbc8641d.c            |    8 --------
> arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c |    1 -
> 6 files changed, 0 insertions(+), 27 deletions(-)

Do any of the board maintainers have issue with this change? Martyn,  
Paul?

I'm fine w/it for the FSL ones.

- k

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: [PATCH 1/2] Drop redundant machine type print in show_cpuinfo
  2008-09-29 13:35 ` Kumar Gala
@ 2008-09-29 13:56   ` Welch, Martyn (GE EntSol, Intelligent Platforms)
  0 siblings, 0 replies; 7+ messages in thread
From: Welch, Martyn (GE EntSol, Intelligent Platforms) @ 2008-09-29 13:56 UTC (permalink / raw)
  To: Kumar Gala, Becky Bruce; +Cc: linuxppc-dev list, Paul Gortmaker

Kumar Gala wrote:
> On Sep 24, 2008, at 4:53 PM, Becky Bruce wrote:
>=20
>> For many of the embedded boards, "model" and "Machine" are printing
>> the same thing; remove the redundant code and allow the generic
>> show_cpuinfo to print the model information.
>>=20
>> Signed-off-by: Becky Bruce <becky.bruce@freescale.com> ---
>> arch/powerpc/platforms/85xx/mpc85xx_ads.c         |    1 -
>> arch/powerpc/platforms/85xx/sbc8560.c             |    1 -
>> arch/powerpc/platforms/86xx/gef_sbc610.c          |    8 --------
>> arch/powerpc/platforms/86xx/mpc86xx_hpcn.c        |    8 --------
>> arch/powerpc/platforms/86xx/sbc8641d.c            |    8 --------
>> arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c |    1 -
>> 6 files changed, 0 insertions(+), 27 deletions(-)
>=20
> Do any of the board maintainers have issue with this change? Martyn,
> Paul?
>=20
> I'm fine w/it for the FSL ones.
>=20
> - k

No problem here.

Martyn

--=20
Martyn Welch MEng MPhil MIET
Principal Software Engineer

GE Fanuc Intelligent Platforms
Tove Valley Business Park, Towcester,
Northants, NN12 6PF, United Kingdom

Telephone: +44 (0) 1327 359444
Direct Dial: +44 (0) 1327 322748
Fax: +44 (0) 1327 322800
email: martyn.welch@gefanuc.com
web: www.gefanuc.com

GE Fanuc Intelligent Platforms Ltd, registered in England and Wales
(3828642) at 100 Barbirolli Square, Manchester, M2 3AB, VAT GB 729 849
476

GE Fanuc Intelligent Platforms Confidential and Proprietary. If you
have received this message in error please notify us immediately and
permanently remove it from your system and destroy any printed
hardcopies. =20

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] Drop redundant machine type print in show_cpuinfo
  2008-09-24 21:53 [PATCH 1/2] Drop redundant machine type print in show_cpuinfo Becky Bruce
  2008-09-29 13:35 ` Kumar Gala
@ 2008-09-29 14:08 ` Paul Gortmaker
  2008-09-29 14:23 ` Kumar Gala
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: Paul Gortmaker @ 2008-09-29 14:08 UTC (permalink / raw)
  To: Becky Bruce; +Cc: linuxppc-dev

On Wed, Sep 24, 2008 at 5:53 PM, Becky Bruce <becky.bruce@freescale.com> wrote:
> For many of the embedded boards, "model" and "Machine" are printing
> the same thing; remove the redundant code and allow the generic
> show_cpuinfo to print the model information.

Sounds good to me.  Thanks for changing the sbc boards as well.

>
> Signed-off-by: Becky Bruce <becky.bruce@freescale.com>

Acked-by: Paul Gortmaker <paul.gortmaker@windriver.com>

> ---
>  arch/powerpc/platforms/85xx/mpc85xx_ads.c         |    1 -
>  arch/powerpc/platforms/85xx/sbc8560.c             |    1 -
>  arch/powerpc/platforms/86xx/gef_sbc610.c          |    8 --------
>  arch/powerpc/platforms/86xx/mpc86xx_hpcn.c        |    8 --------
>  arch/powerpc/platforms/86xx/sbc8641d.c            |    8 --------
>  arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c |    1 -
>  6 files changed, 0 insertions(+), 27 deletions(-)
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] Drop redundant machine type print in show_cpuinfo
  2008-09-24 21:53 [PATCH 1/2] Drop redundant machine type print in show_cpuinfo Becky Bruce
  2008-09-29 13:35 ` Kumar Gala
  2008-09-29 14:08 ` Paul Gortmaker
@ 2008-09-29 14:23 ` Kumar Gala
  2008-09-29 14:24 ` Martyn Welch
  2008-09-29 14:25 ` Kumar Gala
  4 siblings, 0 replies; 7+ messages in thread
From: Kumar Gala @ 2008-09-29 14:23 UTC (permalink / raw)
  To: Becky Bruce; +Cc: linuxppc-dev


On Sep 24, 2008, at 4:53 PM, Becky Bruce wrote:

> For many of the embedded boards, "model" and "Machine" are printing
> the same thing; remove the redundant code and allow the generic
> show_cpuinfo to print the model information.
>
> Signed-off-by: Becky Bruce <becky.bruce@freescale.com>
> ---
> arch/powerpc/platforms/85xx/mpc85xx_ads.c         |    1 -
> arch/powerpc/platforms/85xx/sbc8560.c             |    1 -
> arch/powerpc/platforms/86xx/gef_sbc610.c          |    8 --------
> arch/powerpc/platforms/86xx/mpc86xx_hpcn.c        |    8 --------
> arch/powerpc/platforms/86xx/sbc8641d.c            |    8 --------
> arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c |    1 -
> 6 files changed, 0 insertions(+), 27 deletions(-)

applied.

- k

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] Drop redundant machine type print in show_cpuinfo
  2008-09-24 21:53 [PATCH 1/2] Drop redundant machine type print in show_cpuinfo Becky Bruce
                   ` (2 preceding siblings ...)
  2008-09-29 14:23 ` Kumar Gala
@ 2008-09-29 14:24 ` Martyn Welch
  2008-09-29 14:25 ` Kumar Gala
  4 siblings, 0 replies; 7+ messages in thread
From: Martyn Welch @ 2008-09-29 14:24 UTC (permalink / raw)
  To: Becky Bruce; +Cc: linuxppc-dev

On Wed, 24 Sep 2008 16:53:34 -0500
Becky Bruce <becky.bruce@freescale.com> wrote:
> For many of the embedded boards, "model" and "Machine" are printing
> the same thing; remove the redundant code and allow the generic
> show_cpuinfo to print the model information.
> 

No prob.

> Signed-off-by: Becky Bruce <becky.bruce@freescale.com>

Acked-by: Martyn Welch <martyn.welch@gefanuc.com>

> ---
>  arch/powerpc/platforms/85xx/mpc85xx_ads.c         |    1 -
>  arch/powerpc/platforms/85xx/sbc8560.c             |    1 -
>  arch/powerpc/platforms/86xx/gef_sbc610.c          |    8 --------
>  arch/powerpc/platforms/86xx/mpc86xx_hpcn.c        |    8 --------
>  arch/powerpc/platforms/86xx/sbc8641d.c            |    8 --------
>  arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c |    1 -
>  6 files changed, 0 insertions(+), 27 deletions(-)
> 

-- 
Martyn Welch MEng MPhil MIET (Principal Software Engineer)   T:+44(0)1327322748
GE Fanuc Intelligent Platforms Ltd,        |Registered in England and Wales
Tove Valley Business Park, Towcester,      |(3828642) at 100 Barbirolli Square,
Northants, NN12 6PF, UK T:+44(0)1327359444 |Manchester,M2 3AB  VAT:GB 729849476

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] Drop redundant machine type print in show_cpuinfo
  2008-09-24 21:53 [PATCH 1/2] Drop redundant machine type print in show_cpuinfo Becky Bruce
                   ` (3 preceding siblings ...)
  2008-09-29 14:24 ` Martyn Welch
@ 2008-09-29 14:25 ` Kumar Gala
  4 siblings, 0 replies; 7+ messages in thread
From: Kumar Gala @ 2008-09-29 14:25 UTC (permalink / raw)
  To: Becky Bruce; +Cc: linuxppc-dev


On Sep 24, 2008, at 4:53 PM, Becky Bruce wrote:

> For many of the embedded boards, "model" and "Machine" are printing
> the same thing; remove the redundant code and allow the generic
> show_cpuinfo to print the model information.
>
> Signed-off-by: Becky Bruce <becky.bruce@freescale.com>
> ---
> arch/powerpc/platforms/85xx/mpc85xx_ads.c         |    1 -
> arch/powerpc/platforms/85xx/sbc8560.c             |    1 -
> arch/powerpc/platforms/86xx/gef_sbc610.c          |    8 --------
> arch/powerpc/platforms/86xx/mpc86xx_hpcn.c        |    8 --------
> arch/powerpc/platforms/86xx/sbc8641d.c            |    8 --------
> arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c |    1 -
> 6 files changed, 0 insertions(+), 27 deletions(-)

applied

- k

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-09-29 14:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-24 21:53 [PATCH 1/2] Drop redundant machine type print in show_cpuinfo Becky Bruce
2008-09-29 13:35 ` Kumar Gala
2008-09-29 13:56   ` Welch, Martyn (GE EntSol, Intelligent Platforms)
2008-09-29 14:08 ` Paul Gortmaker
2008-09-29 14:23 ` Kumar Gala
2008-09-29 14:24 ` Martyn Welch
2008-09-29 14:25 ` Kumar Gala

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).