projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8384dd6
)
Ignore duplicate timer run requests.
author
pbrook
<pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 25 May 2008 14:05:47 +0000
(14:05 +0000)
committer
pbrook
<pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 25 May 2008 14:05:47 +0000
(14:05 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4575
c046a42c
-6fe2-441c-8c8c-
71466251a162
hw/ptimer.c
patch
|
blob
|
history
diff --git
a/hw/ptimer.c
b/hw/ptimer.c
index 7dd6d3110a91a23f7b9e224296ceea1a52d1ac6e..356fad7b6f67d0c981d03d11b5423b8dbca0858f 100644
(file)
--- a/
hw/ptimer.c
+++ b/
hw/ptimer.c
@@
-100,6
+100,9
@@
void ptimer_set_count(ptimer_state *s, uint64_t count)
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;