lockdep: Add posixtimer context tracing bits
[platform/kernel/linux-rpi.git] / kernel / time / posix-cpu-timers.c
index 8ff6da7..2c48a72 100644 (file)
@@ -1126,8 +1126,11 @@ void run_posix_cpu_timers(void)
        if (!fastpath_timer_check(tsk))
                return;
 
-       if (!lock_task_sighand(tsk, &flags))
+       lockdep_posixtimer_enter();
+       if (!lock_task_sighand(tsk, &flags)) {
+               lockdep_posixtimer_exit();
                return;
+       }
        /*
         * Here we take off tsk->signal->cpu_timers[N] and
         * tsk->cpu_timers[N] all the timers that are firing, and
@@ -1169,6 +1172,7 @@ void run_posix_cpu_timers(void)
                        cpu_timer_fire(timer);
                spin_unlock(&timer->it_lock);
        }
+       lockdep_posixtimer_exit();
 }
 
 /*