linux-mips
[Top] [All Lists]

[PATCH] bcm63xx: set the correct BCM3302 CPU name when built for BCM47xx

To: ralf@linux-mips.org
Subject: [PATCH] bcm63xx: set the correct BCM3302 CPU name when built for BCM47xx or BCM63xx
From: Florian Fainelli <florian@openwrt.org>
Date: Thu, 3 Sep 2009 21:04:32 +0200
Cc: linux-mips@linux-mips.org, Maxime Bizon <mbizon@freebox.fr>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:date:subject :mime-version:x-uid:x-length:to:cc:content-type :content-transfer-encoding:content-disposition:message-id; bh=ouPSqi+5PIrY53pETgu0BzDvs+nVf+xfdVnxyNesVeM=; b=PfQz3cnNQhrgSjI4MJITOJRti4BPlvG9XpY1OznbF5w/V4OlA2cchsYzx1DAuRY+18 PZwvYl1QGRrrQnajjiWCg/+xZwc9Bdny6ki31XseYo4MSxDTXAxX+3thXOZ/56jD9evW RrF5dL+3USkh5KXpYNFKEJ7QPkfQMtnYNJZgY=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:date:subject:mime-version:x-uid:x-length:to:cc :content-type:content-transfer-encoding:content-disposition :message-id; b=nI/Xk4vsvC79a2kVYcn1Rp2XLrfruCvsytEiuQNwK4v1dlSdFsmeSl8NqHZ6JLNLZe zAFOQaAVl4Bo7utjV9unoOgL853IFMUQxGlB4XtlDvgWWDCwprmIUDPtiuCbjq3SWAdZ zol3R4vupAL/GQI5pGt1kFWwbnfarCsGFZSo4=
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
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;


<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] bcm63xx: set the correct BCM3302 CPU name when built for BCM47xx or BCM63xx, Florian Fainelli <=