diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2017-04-27 14:33:05 +0200 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2017-04-28 17:09:41 +0100 |
commit | 2f9a0bec659700554744338bf780841f641cec40 (patch) | |
tree | ebe59a6d5380a81c3d8175c1550662444b71cfe2 /arch/arm64/kernel | |
parent | f5337346cd8fe1b105f319b4b7fb06fe25c54480 (diff) | |
download | linux-stable-2f9a0bec659700554744338bf780841f641cec40.tar.gz linux-stable-2f9a0bec659700554744338bf780841f641cec40.tar.bz2 linux-stable-2f9a0bec659700554744338bf780841f641cec40.zip |
arm64: Print DT machine model in setup_machine_fdt()
On arm32, the machine model specified in the device tree is printed
during boot-up, courtesy of of_flat_dt_match_machine().
On arm64, of_flat_dt_match_machine() is not called, and the machine
model information is not available from the kernel log.
Print the machine model to make it easier to derive the machine model
from an arbitrary kernel boot log.
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/kernel')
-rw-r--r-- | arch/arm64/kernel/setup.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c index 28855ec1be95..2c822ef94f34 100644 --- a/arch/arm64/kernel/setup.c +++ b/arch/arm64/kernel/setup.c @@ -180,6 +180,7 @@ static void __init smp_build_mpidr_hash(void) static void __init setup_machine_fdt(phys_addr_t dt_phys) { void *dt_virt = fixmap_remap_fdt(dt_phys); + const char *name; if (!dt_virt || !early_init_dt_scan(dt_virt)) { pr_crit("\n" @@ -192,7 +193,9 @@ static void __init setup_machine_fdt(phys_addr_t dt_phys) cpu_relax(); } - dump_stack_set_arch_desc("%s (DT)", of_flat_dt_get_machine_name()); + name = of_flat_dt_get_machine_name(); + pr_info("Machine model: %s\n", name); + dump_stack_set_arch_desc("%s (DT)", name); } static void __init request_standard_resources(void) |