diff options
author | Florian Fainelli <florian@openwrt.org> | 2012-12-06 22:39:57 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2012-12-06 22:39:57 +0000 |
commit | e3f29c6ca9b57aa9daf169ece088f91f930acdf4 (patch) | |
tree | 4686b3948c3deeca8273f80a7a88b262cd64021c /target/linux/adm8668 | |
parent | 580031c536210cfbd8f4d71e9112065eba10c8fc (diff) | |
download | upstream-e3f29c6ca9b57aa9daf169ece088f91f930acdf4.tar.gz upstream-e3f29c6ca9b57aa9daf169ece088f91f930acdf4.tar.bz2 upstream-e3f29c6ca9b57aa9daf169ece088f91f930acdf4.zip |
[adm8668] 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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34551 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm8668')
-rw-r--r-- | target/linux/adm8668/files/arch/mips/adm8668/setup.c | 6 |
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 927d827284..5a177f2a50 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; } |