* Insert the timer on the appropriate list before any timers that
  * expire later.  This must be called with the sighand lock held.
  */
-static void arm_timer(struct k_itimer *timer)
+static void arm_timer(struct k_itimer *timer, struct task_struct *p)
 {
        int clkidx = CPUCLOCK_WHICH(timer->it_clock);
        struct cpu_timer *ctmr = &timer->it.cpu;
        u64 newexp = cpu_timer_getexpires(ctmr);
-       struct task_struct *p = ctmr->task;
        struct posix_cputimer_base *base;
 
        if (CPUCLOCK_PERTHREAD(timer->it_clock))
         */
        cpu_timer_setexpires(ctmr, new_expires);
        if (new_expires != 0 && val < new_expires) {
-               arm_timer(timer);
+               arm_timer(timer, p);
        }
 
        unlock_task_sighand(p, &flags);
        /*
         * Now re-arm for the new expiry time.
         */
-       arm_timer(timer);
+       arm_timer(timer, p);
        unlock_task_sighand(p, &flags);
 }