diff options
author | Jon Medhurst <tixy@linaro.org> | 2015-03-27 16:37:00 +0000 |
---|---|---|
committer | Jon Medhurst <tixy@linaro.org> | 2015-03-27 17:04:03 +0000 |
commit | 3a6bb22812e785b31ba59e910bb00ef017805ee6 (patch) | |
tree | e5977b32fbced82f31bdfc7553744f26ec8e4f5e /arch | |
parent | aff277a9a874e37eb89a950ae7806ecc99b08317 (diff) |
arm64: Add Hardware entry back to /proc/cpuinfo
Commit 72684eae7b0a ("arm64: Fix up /proc/cpuinfo") removed
the Hardware entry from /proc/cpuinfo, however, Android parses
/proc/cpuinfo to get the name of the hardware and uses this
name to find the correct init files. As a consequence, Android
won't boot without it.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm64/kernel/setup.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c index 97676952b269..97ed4add6f47 100644 --- a/arch/arm64/kernel/setup.c +++ b/arch/arm64/kernel/setup.c @@ -572,7 +572,9 @@ static int c_show(struct seq_file *m, void *v) seq_printf(m, "CPU revision\t: %d\n\n", (midr & 0xf)); } - return 0; + seq_printf(m, "Hardware\t: %s\n", machine_name); + + return 0; } static void *c_start(struct seq_file *m, loff_t *pos) |