arm: Retreive the machine name from the device tree
authorChristoffer Dall <christoffer.dall@linaro.org>
Wed, 29 Oct 2014 14:58:57 +0000 (15:58 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Sat, 13 Dec 2014 15:13:46 +0000 (16:13 +0100)
commit3c7dcf3fdefb6fcbd450a2fe71b84b17841950a4
treef90ebbab70d03c0e31f5bb1a58fc27bbaf79dd00
parent178a73c613e95f8103c53071188b778752dc4d3a
arm: Retreive the machine name from the device tree

Instead of using the mdesc descriptive name for the userspace exported
machine name, use the name from the device tree file.  This is
particularly useful for multi-flavored device-tree driven boards like
the ranchu board using the mach-virt board files.

Note that this patch is not intended for newer kernels that rework all
of the mach-virt logic to let a non-board machine be virt by default,
but it is useful in the context of Linux v3.10-based Android kernels.

Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/include/asm/prom.h
arch/arm/kernel/devtree.c
arch/arm/kernel/setup.c