• David S. Miller's avatar
    sparc: Sanitize cpu feature detection and reporting. · ac85fe8b
    David S. Miller authored
    Instead of evaluating the cpu features for ELF_HWCAP every exec,
    calculate it once at boot time.
    
    Add AV_SPARC_* capability flag bits, compatible with what Solaris
    reports to applications.
    
    Report these capabilities once in the kernel log, and also via
    /proc/cpuinfo in a new "cpucaps" entry.
    
    If available, fetch the cpu features from the machine description
    'hwcap-list' property of the 'cpu' node.
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    ac85fe8b
cpu.c 11 KB