* [Qemu-devel] [4575] Ignore duplicate timer run requests.
@ 2008-05-25 14:05 Paul Brook
0 siblings, 0 replies; only message in thread
From: Paul Brook @ 2008-05-25 14:05 UTC (permalink / raw)
To: qemu-devel
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
===================================================================
--- trunk/hw/ptimer.c 2008-05-25 11:19:24 UTC (rev 4574)
+++ trunk/hw/ptimer.c 2008-05-25 14:05:47 UTC (rev 4575)
@@ -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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-05-25 14:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-25 14:05 [Qemu-devel] [4575] Ignore duplicate timer run requests Paul Brook
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).