|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] x86 hvm: Warn only once per time source w
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1210087254 -3600
# Node ID cc953475ab149a61defff06de237295a7feb882d
# Parent a95c2e36d6fda747279123ab13bfaf40c4041337
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/arch/x86/hvm/vpt.c | 6 +++---
xen/include/asm-x86/hvm/vpt.h | 1 +
2 files changed, 4 insertions(+), 3 deletions(-)
diff -r a95c2e36d6fd -r cc953475ab14 xen/arch/x86/hvm/vpt.c
--- a/xen/arch/x86/hvm/vpt.c Tue May 06 16:20:24 2008 +0100
+++ b/xen/arch/x86/hvm/vpt.c Tue May 06 16:20:54 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 a95c2e36d6fd -r cc953475ab14 xen/include/asm-x86/hvm/vpt.h
--- a/xen/include/asm-x86/hvm/vpt.h Tue May 06 16:20:24 2008 +0100
+++ b/xen/include/asm-x86/hvm/vpt.h Tue May 06 16:20:54 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
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] x86 hvm: Warn only once per time source when the periodic tiemout is,
Xen patchbot-unstable <=
|
|
|
|
|