hw/ptimer: Do not artificially limit timers when using icount
PATCH 1/1 hw/ptimer: Do not artificially limit timers when using icount
From: "Edgar E. Iglesias" <[email protected]>
Signed-off-by Edgar E. Iglesias <[email protected]>
--- hw/core/ptimer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/core/ptimer.c +1 -1
@@ -189,7 +189,7 @@ void ptimer_set_limit(ptimer_state *s, uint64_t limit, int reload)* on the current generation of host machines. */ -if (limit * s->period <10000 && s->period) { +if (!use_icount && limit * s->period <10000 && s->period) { limit =10000 / s->period; }
Signature · 1 line
1.9.1
Quoted 13 lines · Edgar E. Iglesias
From: "Edgar E. Iglesias" <[email protected]>
Signed-off-by Edgar E. Iglesias <[email protected]>--- hw/core/ptimer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)hw/core/ptimer.c +0
-0
hw/core/ptimer.c void ptimer_set_limit(ptimer_state *s, uint64_t limit, int reload) · line 195
Quoted 8 lines
hw/core/ptimer.c +1
-1@@ -189,7 +189,7 @@ void ptimer_set_limit(ptimer_state *s, uint64_t limit, int reload)* on the current generation of host machines. */ -if (limit * s->period <10000 && s->period) { +if (!use_icount && limit * s->period <10000 && s->period) { limit =10000 / s->period; }
Reviewed-by Paolo Bonzini <[email protected]>
Quoted 18 lines · Paolo Bonzini
Quoted 15 lines · Edgar E. Iglesias
From: "Edgar E. Iglesias" <[email protected]>
Signed-off-by Edgar E. Iglesias <[email protected]>--- hw/core/ptimer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)hw/core/ptimer.c +0
-0@@ -189,7 +189,7 @@ void ptimer_set_limit(ptimer_state *s, uint64_t limit, int reload)* on the current generation of host machines. */
Quoted 8 lines
hw/core/ptimer.c void ptimer_set_limit(ptimer_state *s, uint64_t limit, int reload) · line 195
Quoted 6 lines
hw/core/ptimer.c +1
-1-if (limit * s->period <10000 && s->period) { +if (!use_icount && limit * s->period <10000 && s->period) { limit =10000 / s->period; }Reviewed-by Paolo Bonzini <[email protected]>
Thanks, I've applied this one.
Cheers,
Edgar