[Top] [All Lists]

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

Subject: Re: [PATCH] bcm63xx: set the correct BCM3302 CPU name when built for BCM47xx or BCM63xx
From: Florian Fainelli <>
Date: Wed, 14 Oct 2009 09:56:00 +0200
Cc:, Maxime Bizon <>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=gamma; h=domainkey-signature:received:received:sender:from:organization:to :subject:date:user-agent:cc:references:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :message-id; bh=OXC0XzAMJoWalOb3SgOitaYw4K6B06xdUiecJO7Bx8k=; b=d9a4t23VKXPzFaJRJ2pCayt0D0G1X8roWcG5tr1YMOYuDmFCt/0OhlRmV2n9NHvp1J eOaOTmlvQIChZmVjzWVAr+pBZnkdl3qSaLEUrEmUHYF977un4kkgeRm8O1jKDg2xI1mh 3pe6GDlwFxOXOPeYgpClKGhnGvMXAXGwTBtFQ=
Domainkey-signature: a=rsa-sha1; c=nofws;; s=gamma; h=sender:from:organization:to:subject:date:user-agent:cc:references :in-reply-to:mime-version:content-type:content-transfer-encoding :content-disposition:message-id; b=LuWk82GmILvUoPNeEj/xJ5CRR7GyTSN9iAiEw9tRB+ITHWsybNVZgZzBZqD3WOixN9 O0Q0EutZxuaGStAngzB+/qgGvXxAsq984GthrLTxd8qYSPY4oS0ffXZCu1uOwMo8R05a ybCbbUturUQ0713Yz2JFUzGiAdsau/XpCieYM=
In-reply-to: <>
Organization: OpenWrt
Original-recipient: rfc822;
References: <>
User-agent: KMail/1.11.2 (Linux/2.6.28-15-server; KDE/4.2.2; x86_64; ; )
Hi Ralf,

Please find below an updated and hopefully cleaner patch. Thanks !
From: Florian Fainelli <>
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 <>
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 = &current_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;

<Prev in Thread] Current Thread [Next in Thread>