projects
/
qemu
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add PowerPC power-management state check callback.
[qemu]
/
hw
/
ptimer.c
diff --git
a/hw/ptimer.c
b/hw/ptimer.c
index
feabefe
..
d81503a
100644
(file)
--- a/
hw/ptimer.c
+++ b/
hw/ptimer.c
@@
-1,4
+1,4
@@
-/*
+/*
* General purpose implementation of a simple periodic countdown timer.
*
* Copyright (c) 2007 CodeSourcery.
* General purpose implementation of a simple periodic countdown timer.
*
* Copyright (c) 2007 CodeSourcery.
@@
-149,7
+149,7
@@
void ptimer_set_limit(ptimer_state *s, uint64_t limit, int reload)
s->limit = limit;
if (reload)
s->delta = limit;
s->limit = limit;
if (reload)
s->delta = limit;
- if (s->enabled) {
+ if (s->enabled && reload) {
s->next_event = qemu_get_clock(vm_clock);
ptimer_reload(s);
}
s->next_event = qemu_get_clock(vm_clock);
ptimer_reload(s);
}