aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/smp.c
diff options
context:
space:
mode:
authorDave Martin <dave.martin@linaro.org>2012-02-17 11:54:28 -0500
committerMarc Zyngier <marc.zyngier@arm.com>2012-09-19 03:32:52 -0400
commit4588c34daabb5aebee9cbe90f0ca6ab11412f207 (patch)
tree1bfb963e136e20b0efa1bad2b2c6057081f0fab5 /arch/arm/kernel/smp.c
parent6a6d55c38c8b4ee77b50a33f03ea09e75b18bf82 (diff)
ARM: virt: Add boot-time diagnostics
In order to easily detect pathological cases, print some diagnostics when the kernel boots. This also provides helpers to detect that HYP mode is actually available, which can be used by other subsystems to enable HYP specific features. Signed-off-by: Dave Martin <dave.martin@linaro.org> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'arch/arm/kernel/smp.c')
-rw-r--r--arch/arm/kernel/smp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c
index ebd8ad274d76..adf226e718d2 100644
--- a/arch/arm/kernel/smp.c
+++ b/arch/arm/kernel/smp.c
@@ -42,6 +42,7 @@
42#include <asm/ptrace.h> 42#include <asm/ptrace.h>
43#include <asm/localtimer.h> 43#include <asm/localtimer.h>
44#include <asm/smp_plat.h> 44#include <asm/smp_plat.h>
45#include <asm/virt.h>
45 46
46/* 47/*
47 * as from 2.5, kernels no longer have an init_tasks structure 48 * as from 2.5, kernels no longer have an init_tasks structure
@@ -287,6 +288,8 @@ void __init smp_cpus_done(unsigned int max_cpus)
287 num_online_cpus(), 288 num_online_cpus(),
288 bogosum / (500000/HZ), 289 bogosum / (500000/HZ),
289 (bogosum / (5000/HZ)) % 100); 290 (bogosum / (5000/HZ)) % 100);
291
292 hyp_mode_check();
290} 293}
291 294
292void __init smp_prepare_boot_cpu(void) 295void __init smp_prepare_boot_cpu(void)