From 2efe49c1029f959fe80879bcf50df42e8b80451d Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 16 Oct 2013 13:01:01 +1000 Subject: [PATCH] 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 Reviewed-by: Adam Jackson Reviewed-by: Keith Packard --- Xext/sync.c | 5 ++--- 1 file 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); + } /*