summaryrefslogtreecommitdiff
path: root/target/linux/adm8668
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-12-06 22:39:57 +0000
committerFlorian Fainelli <florian@openwrt.org>2012-12-06 22:39:57 +0000
commit47ccbaaa918b9b45bc7310a545e9dfa200a8f8b7 (patch)
treeec4faab7e1c2cf78ddc2aa4ce1bfa58f640c9861 /target/linux/adm8668
parente37f6fb458314d24de119b9bba1b8a28a9379839 (diff)
downloadmtk-20170518-47ccbaaa918b9b45bc7310a545e9dfa200a8f8b7.zip
mtk-20170518-47ccbaaa918b9b45bc7310a545e9dfa200a8f8b7.tar.gz
mtk-20170518-47ccbaaa918b9b45bc7310a545e9dfa200a8f8b7.tar.bz2
remove frequency from /proc/cpuinfo
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
Diffstat (limited to 'target/linux/adm8668')
-rw-r--r--target/linux/adm8668/files/arch/mips/adm8668/setup.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/target/linux/adm8668/files/arch/mips/adm8668/setup.c b/target/linux/adm8668/files/arch/mips/adm8668/setup.c
index 927d827..5a177f2 100644
--- a/target/linux/adm8668/files/arch/mips/adm8668/setup.c
+++ b/target/linux/adm8668/files/arch/mips/adm8668/setup.c
@@ -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;
}