Changeset 34551


Ignore:
Timestamp:
2012-12-06T23:39:57+01:00 (5 years ago)
Author:
florian
Message:

[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@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/adm8668/files/arch/mips/adm8668/setup.c

    r34543 r34551  
    3737{ 
    3838        unsigned long chipid = ADM8668_CONFIG_REG(ADM8668_CR0); 
    39         int adj = (ADM8668_CONFIG_REG(ADM8668_CR3) >> 11) & 0xf; 
    40         int product, revision, mhz; 
     39        int product, revision; 
    4140        static char ret[32]; 
    4241 
    4342        product = chipid >> 16; 
    4443        revision = chipid & 0xffff; 
    45         mhz = (SYS_CLOCK/1000000) + (adj * 5); 
    4644 
    4745        /* i getting fancy :\ */ 
    48         snprintf(ret, sizeof(ret), "ADM%xr%x %dMHz", product, revision, mhz); 
     46        snprintf(ret, sizeof(ret), "ADM%xr%x", product, revision); 
    4947 
    5048        return ret; 
Note: See TracChangeset for help on using the changeset viewer.