]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: Add printing of ISA version in cpuinfo.
authorSteven J. Hill <sjhill@mips.com>
Fri, 7 Dec 2012 04:31:36 +0000 (04:31 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 1 Feb 2013 09:00:23 +0000 (10:00 +0100)
commite677c36ab77bc716324e6b771786b5db1714f5bf
treea2be64618ded5a347740ed2e4d42eb41e969517e
parent4b9e4861356669e956b37b59a598079eb0aa3227
MIPS: Add printing of ISA version in cpuinfo.

Display the MIPS ISA version release in the /proc/cpuinfo file.

[ralf@linux-mips.org: Add support for MIPS I ... IV legacy architecture
revisions.  Also differenciate between MIPS32 and MIPS64 versions instead
of lumping them together as just r1 and r2.

Note to application programmers: this indicates the CPU's ISA level
It does not imply the current execution environment does support it.  For
example an O32 application seeing "mips64r2" would still be restricted by
by the execution environment to 32-bit - but the kernel could run mips64r2
code.  The same for a 32-bit kernel running on a 64-bit processor.  This
field doesn't include ASEs or optional architecture modules nor other
detailed flags such as the availability of an FPU.]

Signed-off-by: Steven J. Hill <sjhill@mips.com>
Cc: linux-mips@linux-mips.org
Patchwork: http://patchwork.linux-mips.org/patch/4714/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/cpu-features.h
arch/mips/kernel/cpu-probe.c
arch/mips/kernel/proc.c