]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - kernel/fork.c
posix-timers: Make them configurable
[mirror_ubuntu-zesty-kernel.git] / kernel / fork.c
index 623259fc794d034f7b4ab9144e2a61a7233381b6..17da35fa77e761b7df4411af1020fc42ec5f5f91 100644 (file)
@@ -1342,8 +1342,10 @@ static int copy_signal(unsigned long clone_flags, struct task_struct *tsk)
        seqlock_init(&sig->stats_lock);
        prev_cputime_init(&sig->prev_cputime);
 
+#ifdef CONFIG_POSIX_TIMERS
        hrtimer_init(&sig->real_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
        sig->real_timer.function = it_real_fn;
+#endif
 
        task_lock(current->group_leader);
        memcpy(sig->rlim, current->signal->rlim, sizeof sig->rlim);