mirror of
https://github.com/xen-project/xen.git
synced 2026-10-30 03:00:05 +01:00
x86/time: Print a more helpful error when a platform timer can't be found
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Reviewed-by: Wei Liu <wei.liu2@citrix.com>
This commit is contained in:
1 parent
edef87f0d4
commit
f5b58e3d64
1 file changed
+2
-1
+2
-1
@@ -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);
|
||||
|
||||