From: Florian Fainelli <florian@openwrt.org>
To: ralf@linux-mips.org
Cc: linux-mips@linux-mips.org, Maxime Bizon <mbizon@freebox.fr>
Subject: [PATCH] bcm63xx: set the correct BCM3302 CPU name when built for BCM47xx or BCM63xx
Date: Thu, 3 Sep 2009 21:04:32 +0200 [thread overview]
Message-ID: <200909032104.34135.florian@openwrt.org> (raw)
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;
next reply other threads:[~2009-09-03 19:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-03 19:04 Florian Fainelli [this message]
2009-10-14 7:56 ` [PATCH] bcm63xx: set the correct BCM3302 CPU name when built for BCM47xx or BCM63xx Florian Fainelli
2009-10-14 8:57 ` Ralf Baechle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200909032104.34135.florian@openwrt.org \
--to=florian@openwrt.org \
--cc=linux-mips@linux-mips.org \
--cc=mbizon@freebox.fr \
--cc=ralf@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).