hw/ptimer: Do not artificially limit timers when using icount
authorEdgar E. Iglesias <edgar.iglesias@xilinx.com>
Wed, 10 Sep 2014 08:33:58 +0000 (18:33 +1000)
committerEdgar E. Iglesias <edgar.iglesias@xilinx.com>
Fri, 8 May 2015 07:15:23 +0000 (17:15 +1000)
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
hw/core/ptimer.c

index 2abad1fa3d18498b9fcf160df5b5c4da5d8564c4..8437bd6e8bf9ed9ab2a23fca40c09985ed8aa8d0 100644 (file)
@@ -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;
     }