aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/hvm/vpt.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-05-06 16:20:54 +0100
committerKeir Fraser <keir.fraser@citrix.com>2008-05-06 16:20:54 +0100
commit08fe56f0cd8c00e4b3e12874cfc5c98fa7466e3b (patch)
tree2cecf4f9f036731eba35a2dfb3fc1f8b25481459 /xen/arch/x86/hvm/vpt.c
parentdf4d2e7b701450197d35aa851463e1329b20981c (diff)
downloadxen-08fe56f0cd8c00e4b3e12874cfc5c98fa7466e3b.tar.gz
xen-08fe56f0cd8c00e4b3e12874cfc5c98fa7466e3b.tar.bz2
xen-08fe56f0cd8c00e4b3e12874cfc5c98fa7466e3b.zip
x86 hvm: Warn only once per time source when the periodic tiemout is
set 'too small'. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/arch/x86/hvm/vpt.c')
-rw-r--r--xen/arch/x86/hvm/vpt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xen/arch/x86/hvm/vpt.c b/xen/arch/x86/hvm/vpt.c
index 16f886647d..832c9042d7 100644
--- a/xen/arch/x86/hvm/vpt.c
+++ b/xen/arch/x86/hvm/vpt.c
@@ -338,9 +338,9 @@ void create_periodic_time(
/* 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);
+ if ( !test_and_set_bool(pt->warned_timeout_too_short) )
+ gdprintk(XENLOG_WARNING, "HVM_PlatformTime: program too "
+ "small period %"PRIu64"\n", period);
period = 900000;
}