x86/time: Print a more helpful error when a platform timer can't be found
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 11 Jan 2018 17:47:59 +0000 (17:47 +0000)
committerWei Liu <wei.liu2@citrix.com>
Tue, 16 Jan 2018 18:34:04 +0000 (18:34 +0000)
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/time.c

index 2a879502a25bf458b4aa95889b3df4f4410a5f91..3b654d7b7db0b779655a8ed73093638971422399 100644 (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);