diff options
Diffstat (limited to 'kernel/fork.c')
-rw-r--r-- | kernel/fork.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index 105c6676d93b..f6995cdfe714 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -1314,7 +1314,7 @@ static void posix_cpu_timers_init_group(struct signal_struct *sig) | |||
1314 | 1314 | ||
1315 | cpu_limit = READ_ONCE(sig->rlim[RLIMIT_CPU].rlim_cur); | 1315 | cpu_limit = READ_ONCE(sig->rlim[RLIMIT_CPU].rlim_cur); |
1316 | if (cpu_limit != RLIM_INFINITY) { | 1316 | if (cpu_limit != RLIM_INFINITY) { |
1317 | sig->cputime_expires.prof_exp = secs_to_cputime(cpu_limit); | 1317 | sig->cputime_expires.prof_exp = cpu_limit * NSEC_PER_SEC; |
1318 | sig->cputimer.running = true; | 1318 | sig->cputimer.running = true; |
1319 | } | 1319 | } |
1320 | 1320 | ||