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:
Andrew Cooper authored and Wei Liu committed 2018-01-16 18:34:04 +00:00
1 parent edef87f0d4
commit f5b58e3d64
1 file changed
+2 -1
+2 -1
View File
@@ -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);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.