mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
hvm: Only complain about short-period periodic tickers.
Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
080ea11ff4
commit
3a3398a77b
1 file changed
+4
-2
@@ -261,13 +261,15 @@ void create_periodic_time(
|
||||
pt->enabled = 1;
|
||||
pt->pending_intr_nr = 0;
|
||||
|
||||
if ( period < 900000 ) /* < 0.9 ms */
|
||||
/* Periodic timer must be at least 0.9ms. */
|
||||
if ( (period < 900000) && !one_shot )
|
||||
{
|
||||
gdprintk(XENLOG_WARNING,
|
||||
"HVM_PlatformTime: program too small period %"PRIu64"\n",
|
||||
period);
|
||||
period = 900000; /* force to 0.9ms */
|
||||
period = 900000;
|
||||
}
|
||||
|
||||
pt->period = period;
|
||||
pt->vcpu = v;
|
||||
pt->last_plt_gtime = hvm_get_guest_time(pt->vcpu);
|
||||
|
||||