[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-3.2-testing] x86 hvm: Warn only once per time source when the periodic tiemout is
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1210688102 -3600 # Node ID 9bb37012b63e58890d4b8eab956dc2722ddb433d # Parent 1f673d541aad6bdddff72cae57fc89210e089089 x86 hvm: Warn only once per time source when the periodic tiemout is set 'too small'. Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx> xen-unstable changeset: 17579:cc953475ab149a61defff06de237295a7feb882d xen-unstable date: Tue May 06 16:20:54 2008 +0100 --- xen/arch/x86/hvm/vpt.c | 6 +++--- xen/include/asm-x86/hvm/vpt.h | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff -r 1f673d541aad -r 9bb37012b63e xen/arch/x86/hvm/vpt.c --- a/xen/arch/x86/hvm/vpt.c Tue May 13 15:14:34 2008 +0100 +++ b/xen/arch/x86/hvm/vpt.c Tue May 13 15:15:02 2008 +0100 @@ -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; } diff -r 1f673d541aad -r 9bb37012b63e xen/include/asm-x86/hvm/vpt.h --- a/xen/include/asm-x86/hvm/vpt.h Tue May 13 15:14:34 2008 +0100 +++ b/xen/include/asm-x86/hvm/vpt.h Tue May 13 15:15:02 2008 +0100 @@ -78,6 +78,7 @@ struct periodic_time { bool_t one_shot; bool_t do_not_freeze; bool_t irq_issued; + bool_t warned_timeout_too_short; #define PTSRC_isa 1 /* ISA time source */ #define PTSRC_lapic 2 /* LAPIC time source */ u8 source; /* PTSRC_ */ _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |