Skip to contentSkip to conversation

[4575] Ignore duplicate timer run requests.

Qemu-devel Paul Brook 1 participant 1 message May 25, 2008

lore
Share & tools
lore

Paul Brook

author
#0 lore raw

Revision: 4575

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4575
Author:   pbrook
Date:     2008-05-25 14:05:47 +0000 (Sun, 25 May 2008)

Log Message:
-----------
Ignore duplicate timer run requests.

Modified Paths:
--------------
trunk/hw/ptimer.c

Modified: trunk/hw/ptimer.c
===================================================================

hw/ptimer.c +3 -0
@@ -100,6 +100,9 @@
 
 void ptimer_run(ptimer_state *s, int oneshot)
 {
+    if (s->enabled) {
+        return;
+    }
     if (s->period == 0) {
         fprintf(stderr, "Timer with period zero, disabling\n");
         return;