diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2013-10-16 13:01:01 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2013-10-18 13:42:20 +1000 |
commit | 2efe49c1029f959fe80879bcf50df42e8b80451d (patch) | |
tree | 66d0beb308987a81cc4a235c081ecd206df45841 /Xext | |
parent | 5c7cfd4c6978834551848e1be62af240102e39b5 (diff) |
sync: always call BracketValues when recalculating upper/lower brackets
Both ServertimeBracketValues and IdleTimeBracketValues copy the value into
there SysCounter privates. Call it for a NULL set as well, so we don't end up
with stale pointers and we can remove the block/wakeup handlers.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'Xext')
-rw-r--r-- | Xext/sync.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Xext/sync.c b/Xext/sync.c index f93ac18aa..eaf063741 100644 --- a/Xext/sync.c +++ b/Xext/sync.c @@ -1058,9 +1058,8 @@ SyncComputeBracketValues(SyncCounter * pCounter) } } /* end for each trigger */ - if (pnewgtval || pnewltval) { - (*psci->BracketValues) ((pointer) pCounter, pnewltval, pnewgtval); - } + (*psci->BracketValues) ((pointer) pCounter, pnewltval, pnewgtval); + } /* |