From: Will Deacon Date: Fri, 11 Oct 2013 13:52:11 +0000 (+0100) Subject: arm64: setup: report ELF_PLATFORM as the machine for utsname X-Git-Tag: accepted/tizen/common/20141203.182822~1198^2~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=94ed1f2cb5d46533f10262b1b760db7dbec9cf10;p=platform%2Fkernel%2Flinux-arm64.git arm64: setup: report ELF_PLATFORM as the machine for utsname uname -m reports the machine field from the current utsname, which should reflect the endianness of the system. This patch reports ELF_PLATFORM for the field, so that everything appears consistent from userspace. Signed-off-by: Will Deacon Signed-off-by: Catalin Marinas --- diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c index b65c132..fa6faf5 100644 --- a/arch/arm64/kernel/setup.c +++ b/arch/arm64/kernel/setup.c @@ -119,7 +119,7 @@ static void __init setup_processor(void) printk("CPU: %s [%08x] revision %d\n", cpu_name, read_cpuid_id(), read_cpuid_id() & 15); - sprintf(init_utsname()->machine, "aarch64"); + sprintf(init_utsname()->machine, ELF_PLATFORM); elf_hwcap = 0; }