remove frequency from /proc/cpuinfo
authorFlorian Fainelli <florian@openwrt.org>
Thu, 6 Dec 2012 22:39:57 +0000 (22:39 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Thu, 6 Dec 2012 22:39:57 +0000 (22:39 +0000)
This is not the place to expose it and duplicates code reading the
system frequency.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 34551

target/linux/adm8668/files/arch/mips/adm8668/setup.c

index 927d827284d6fa0034f7d4b8e1e6a6a71f64b8fe..5a177f2a505166aaf5886865e14ed2f0c24bad1b 100644 (file)
@@ -36,16 +36,14 @@ void __init plat_mem_setup(void)
 const char *get_system_type(void)
 {
         unsigned long chipid = ADM8668_CONFIG_REG(ADM8668_CR0);
-        int adj = (ADM8668_CONFIG_REG(ADM8668_CR3) >> 11) & 0xf;
-        int product, revision, mhz;
+        int product, revision;
        static char ret[32];
 
         product = chipid >> 16;
         revision = chipid & 0xffff;
-       mhz = (SYS_CLOCK/1000000) + (adj * 5);
 
        /* i getting fancy :\ */
-       snprintf(ret, sizeof(ret), "ADM%xr%x %dMHz", product, revision, mhz);
+       snprintf(ret, sizeof(ret), "ADM%xr%x", product, revision);
 
        return ret;
 }