* [PATCH] bcm63xx: set the correct BCM3302 CPU name when built for BCM47xx or BCM63xx
@ 2009-09-03 19:04 Florian Fainelli
2009-10-14 7:56 ` Florian Fainelli
0 siblings, 1 reply; 3+ messages in thread
From: Florian Fainelli @ 2009-09-03 19:04 UTC (permalink / raw)
To: ralf; +Cc: linux-mips, Maxime Bizon
The Broadcom BCM3302 core is present in both the BCM47xx and
the BCM6338 SoC. If people want to report a kernel oops it
might be convenient to know about the real system they are
running Linux on at first glance.
Set the CPU name to be 3302 on BCM47xx and 6338 on BCM63xx.
Signed-off-by: Florian Fainelli <florian@openwrt.org>
---
diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c
index 251a268..405e9d4 100644
--- a/arch/mips/kernel/cpu-probe.c
+++ b/arch/mips/kernel/cpu-probe.c
@@ -862,7 +862,11 @@ static inline void cpu_probe_broadcom(struct cpuinfo_mips *c, unsigned int cpu)
case PRID_IMP_BCM3302:
/* same as PRID_IMP_BCM6338 */
c->cputype = CPU_BCM3302;
+#ifdef CONFIG_BCM47XX
__cpu_name[cpu] = "Broadcom BCM3302";
+#else
+ __cpu_name[cpu] = "Broadcom BCM6338";
+#endif
break;
case PRID_IMP_BCM4710:
c->cputype = CPU_BCM4710;
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] bcm63xx: set the correct BCM3302 CPU name when built for BCM47xx or BCM63xx
2009-09-03 19:04 [PATCH] bcm63xx: set the correct BCM3302 CPU name when built for BCM47xx or BCM63xx Florian Fainelli
@ 2009-10-14 7:56 ` Florian Fainelli
2009-10-14 8:57 ` Ralf Baechle
0 siblings, 1 reply; 3+ messages in thread
From: Florian Fainelli @ 2009-10-14 7:56 UTC (permalink / raw)
To: ralf; +Cc: linux-mips, Maxime Bizon
Hi Ralf,
Please find below an updated and hopefully cleaner patch. Thanks !
--
From: Florian Fainelli <florian@openwrt.org>
Subject: [PATCH] bcm63xx: correctly set BCM6338 CPU name
For consistency with other BCM63xx SoC set the CPU name
to "Broadcom BCM6338" when actually running on that system.
Signed-off-by: Florian Fainelli <florian@openwrt.org>
---
diff --git a/arch/mips/bcm63xx/cpu.c b/arch/mips/bcm63xx/cpu.c
index 6dc43f0..70378bb 100644
--- a/arch/mips/bcm63xx/cpu.c
+++ b/arch/mips/bcm63xx/cpu.c
@@ -10,6 +10,7 @@
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/cpu.h>
+#include <asm/cpu-info.h>
#include <bcm63xx_cpu.h>
#include <bcm63xx_regs.h>
#include <bcm63xx_io.h>
@@ -284,6 +285,7 @@ void __init bcm63xx_cpu_init(void)
{
unsigned int tmp, expected_cpu_id;
struct cpuinfo_mips *c = ¤t_cpu_data;
+ unsigned int cpu = smp_processor_id();
/* soc registers location depends on cpu type */
expected_cpu_id = 0;
@@ -293,6 +295,7 @@ void __init bcm63xx_cpu_init(void)
* BCM6338 as the same PrId as BCM3302 see arch/mips/kernel/cpu-probe.c
*/
case CPU_BCM3302:
+ __cpu_name[cpu] = "Broadcom BCM6338";
expected_cpu_id = BCM6338_CPU_ID;
bcm63xx_regs_base = bcm96338_regs_base;
bcm63xx_irqs = bcm96338_irqs;
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] bcm63xx: set the correct BCM3302 CPU name when built for BCM47xx or BCM63xx
2009-10-14 7:56 ` Florian Fainelli
@ 2009-10-14 8:57 ` Ralf Baechle
0 siblings, 0 replies; 3+ messages in thread
From: Ralf Baechle @ 2009-10-14 8:57 UTC (permalink / raw)
To: Florian Fainelli; +Cc: linux-mips, Maxime Bizon
On Wed, Oct 14, 2009 at 09:56:00AM +0200, Florian Fainelli wrote:
> Hi Ralf,
>
> Please find below an updated and hopefully cleaner patch. Thanks !
Thanks, applied.
Ralf
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-10-14 8:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-03 19:04 [PATCH] bcm63xx: set the correct BCM3302 CPU name when built for BCM47xx or BCM63xx Florian Fainelli
2009-10-14 7:56 ` Florian Fainelli
2009-10-14 8:57 ` Ralf Baechle
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).