|
@@ -18,7 +18,7 @@ void update_rlimit_cpu(unsigned long rlim_new)
|
|
|
|
|
|
cputime = secs_to_cputime(rlim_new);
|
|
cputime = secs_to_cputime(rlim_new);
|
|
if (cputime_eq(current->signal->it_prof_expires, cputime_zero) ||
|
|
if (cputime_eq(current->signal->it_prof_expires, cputime_zero) ||
|
|
- cputime_lt(current->signal->it_prof_expires, cputime)) {
|
|
|
|
|
|
+ cputime_gt(current->signal->it_prof_expires, cputime)) {
|
|
spin_lock_irq(¤t->sighand->siglock);
|
|
spin_lock_irq(¤t->sighand->siglock);
|
|
set_process_cpu_timer(current, CPUCLOCK_PROF, &cputime, NULL);
|
|
set_process_cpu_timer(current, CPUCLOCK_PROF, &cputime, NULL);
|
|
spin_unlock_irq(¤t->sighand->siglock);
|
|
spin_unlock_irq(¤t->sighand->siglock);
|