aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2013-10-11 14:52:11 +0100
committerCatalin Marinas <catalin.marinas@arm.com>2013-10-25 15:59:34 +0100
commit94ed1f2cb5d46533f10262b1b760db7dbec9cf10 (patch)
treec80aa99c409769242c4dee5ddcf77c81ce490288 /arch/arm64/kernel
parentarm64: ELF: add support for big-endian executables (diff)
downloadlinux-dev-94ed1f2cb5d46533f10262b1b760db7dbec9cf10.tar.xz
linux-dev-94ed1f2cb5d46533f10262b1b760db7dbec9cf10.zip
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 <will.deacon@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/kernel')
-rw-r--r--arch/arm64/kernel/setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c
index b65c132fac30..fa6faf564da2 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;
}