]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: kernel: update cpuinfo to print all online CPUs features
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 10 Sep 2012 17:55:21 +0000 (18:55 +0100)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 19 Nov 2012 14:51:12 +0000 (14:51 +0000)
commited50d79746531484e6905987b5686bf7ab29efb2
treeb8a7daa2b44a0d639323a6add79b548e0bb7f6c4
parenta991435efe0810a5a545b9ee68fec8a80847298a
ARM: kernel: update cpuinfo to print all online CPUs features

Currently, reading /proc/cpuinfo provides userspace with CPU ID of
the CPU carrying out the read from the file. This is fine as long as all
CPUs in the system are the same. With the advent of big.LITTLE and
heterogenous ARM systems this approach provides user space with incorrect
bits of information since CPU ids in the system might differ from the one
provided by the CPU reading the file.

This patch updates the cpuinfo show function so that a read from
/proc/cpuinfo prints HW information for all online CPUs at once, mirroring
 x86 behaviour.

Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Nicolas Pitre <nico@linaro.org>
arch/arm/kernel/setup.c