diff options
author | Will Deacon <will.deacon@arm.com> | 2013-10-11 09:52:11 -0400 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2013-10-25 10:59:34 -0400 |
commit | 94ed1f2cb5d46533f10262b1b760db7dbec9cf10 (patch) | |
tree | c80aa99c409769242c4dee5ddcf77c81ce490288 /arch/arm64 | |
parent | 5436b5c8305b4ed37c5d11f96c1aaccca63c9ab2 (diff) |
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')
-rw-r--r-- | arch/arm64/kernel/setup.c | 2 |
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) | |||
119 | printk("CPU: %s [%08x] revision %d\n", | 119 | printk("CPU: %s [%08x] revision %d\n", |
120 | cpu_name, read_cpuid_id(), read_cpuid_id() & 15); | 120 | cpu_name, read_cpuid_id(), read_cpuid_id() & 15); |
121 | 121 | ||
122 | sprintf(init_utsname()->machine, "aarch64"); | 122 | sprintf(init_utsname()->machine, ELF_PLATFORM); |
123 | elf_hwcap = 0; | 123 | elf_hwcap = 0; |
124 | } | 124 | } |
125 | 125 | ||