]> git.baikalelectronics.ru Git - kernel.git/commit
sh: Expose physical addressing mode through cpuinfo.
authorPaul Mundt <lethal@linux-sh.org>
Tue, 26 Oct 2010 05:44:58 +0000 (14:44 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 26 Oct 2010 05:44:58 +0000 (14:44 +0900)
commit561d542a31f25e04d999cfd7926f083794f7661c
tree13373dbdc047a2b70623dbf2cd3181865266f976
parent4713756ef6d2273a6f65dc7ed31235fd6fad71e8
sh: Expose physical addressing mode through cpuinfo.

CPUs can be in either the legacy 29-bit or 32-bit physical addressing
modes. This follows the x86 approach of tracking the phys bits in cpuinfo
and exposing it to userspace through procfs.

This change was requested to permit kexec-tools to detect the physical
addressing mode in order to determine the appropriate address mangling.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/processor.h
arch/sh/kernel/cpu/init.c
arch/sh/kernel/setup.c