Commit 98fc56145ecedbcb4b59ebbf6b0538b20e9bda57

Authored by pbrook
1 parent 8384dd67

Ignore duplicate timer run requests.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4575 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 3 additions and 0 deletions
hw/ptimer.c
... ... @@ -100,6 +100,9 @@ void ptimer_set_count(ptimer_state *s, uint64_t count)
100 100  
101 101 void ptimer_run(ptimer_state *s, int oneshot)
102 102 {
  103 + if (s->enabled) {
  104 + return;
  105 + }
103 106 if (s->period == 0) {
104 107 fprintf(stderr, "Timer with period zero, disabling\n");
105 108 return;
... ...