commit 5abb6f6135948218f7c5e756a839125e1090d9ba
Author: Imre Vadász <[email protected]>
Date:   Tue Dec 27 22:46:31 2016 +0100

    drm: Invert del_timer_sync return value, to match behaviour in Linux.
    
    * DragonFly's callout_drain() returns 1 if the function was executed.
      Linux's del_timer_sync() returns 1 if the timer was pending and got
      cancelled.
      So inverting the callout_drain() return value should make del_timer_sync
      behave a bit more like the correponding function in Linux.
    
    * This fixes the behaviour of the "if (del_timer_sync(&domain->timer) == 0)"
      check in intel_uncore_forcewake_reset() .

Summary of changes:
 sys/dev/drm/include/linux/timer.h | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5abb6f6135948218f7c5e756a839125e1090d9ba


-- 
DragonFly BSD source repository

Reply via email to