]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - kernel/posix-cpu-timers.c
posix_timers: Fix pre-condition to stop the tick on full dynticks
[karo-tx-linux.git] / kernel / posix-cpu-timers.c
index 84d5cb372ed5b75282d27896f58374c74e67e389..42670e9b44e0830f92c4238236906904dd505b51 100644 (file)
@@ -673,12 +673,12 @@ static void posix_cpu_timer_kick_nohz(void)
 bool posix_cpu_timers_can_stop_tick(struct task_struct *tsk)
 {
        if (!task_cputime_zero(&tsk->cputime_expires))
-               return true;
+               return false;
 
        if (tsk->signal->cputimer.running)
-               return true;
+               return false;
 
-       return false;
+       return true;
 }
 #else
 static inline void posix_cpu_timer_kick_nohz(void) { }