From f5b58e3d64ef3e38de28dd1e25e7734506dac258 Mon Sep 17 00:00:00 2001 From: Andrew Cooper Date: Thu, 11 Jan 2018 17:47:59 +0000 Subject: [PATCH] x86/time: Print a more helpful error when a platform timer can't be found Signed-off-by: Andrew Cooper Reviewed-by: Wei Liu --- xen/arch/x86/time.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/time.c b/xen/arch/x86/time.c index 2a879502a2..3b654d7b7d 100644 --- a/xen/arch/x86/time.c +++ b/xen/arch/x86/time.c @@ -708,7 +708,8 @@ static u64 __init init_platform_timer(void) } } - BUG_ON(rc <= 0); + if ( rc <= 0 ) + panic("Unable to find usable platform timer"); printk("Platform timer is %s %s\n", freq_string(pts->frequency), pts->name); -- 2.30.2