xen/arm: Print whether Xen is booting using ACPI or DT
authorJulien Grall <julien.grall@arm.com>
Fri, 3 Feb 2017 19:18:52 +0000 (19:18 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Thu, 16 Feb 2017 01:42:21 +0000 (17:42 -0800)
Make it easier to figure out whether Xen is booting using ACPI or DT by
printing a message on the console.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/setup.c

index 049e4491d6982443f3105034a0ec29d2ba076c7d..41aa1ddfc1ba00806b4a10ca2dffe8f58dd59cb5 100644 (file)
@@ -753,6 +753,11 @@ void __init start_xen(unsigned long boot_phys_offset,
     /* Parse the ACPI tables for possible boot-time configuration */
     acpi_boot_table_init();
 
+    if ( acpi_disabled )
+        printk("Booting using Device Tree\n");
+    else
+        printk("Booting using ACPI\n");
+
     end_boot_allocator();
 
     vm_init();