[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH RFC v1 10/74] x86/time: Print a more helpful error when a platform timer can't be found
From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> Reviewed-by: Wei Liu <wei.liu2@xxxxxxxxxx> --- 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.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |