summaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index 52bfe7c20ff6..f1228d9f0b11 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1517,7 +1517,6 @@ void __cleanup_sighand(struct sighand_struct *sighand)
1517 } 1517 }
1518} 1518}
1519 1519
1520#ifdef CONFIG_POSIX_TIMERS
1521/* 1520/*
1522 * Initialize POSIX timer handling for a thread group. 1521 * Initialize POSIX timer handling for a thread group.
1523 */ 1522 */
@@ -1528,12 +1527,7 @@ static void posix_cpu_timers_init_group(struct signal_struct *sig)
1528 1527
1529 cpu_limit = READ_ONCE(sig->rlim[RLIMIT_CPU].rlim_cur); 1528 cpu_limit = READ_ONCE(sig->rlim[RLIMIT_CPU].rlim_cur);
1530 posix_cputimers_group_init(pct, cpu_limit); 1529 posix_cputimers_group_init(pct, cpu_limit);
1531 if (cpu_limit != RLIM_INFINITY)
1532 sig->cputimer.running = true;
1533} 1530}
1534#else
1535static inline void posix_cpu_timers_init_group(struct signal_struct *sig) { }
1536#endif
1537 1531
1538static int copy_signal(unsigned long clone_flags, struct task_struct *tsk) 1532static int copy_signal(unsigned long clone_flags, struct task_struct *tsk)
1539{ 1533{