aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/posix-cpu-timers.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/posix-cpu-timers.c')
-rw-r--r--kernel/posix-cpu-timers.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/posix-cpu-timers.c b/kernel/posix-cpu-timers.c
index 69c92374355f..18bdde6f676f 100644
--- a/kernel/posix-cpu-timers.c
+++ b/kernel/posix-cpu-timers.c
@@ -1086,7 +1086,7 @@ static void check_cpu_itimer(struct task_struct *tsk, struct cpu_itimer *it,
1086 it->error += it->incr_error; 1086 it->error += it->incr_error;
1087 if (it->error >= onecputick) { 1087 if (it->error >= onecputick) {
1088 it->expires = cputime_sub(it->expires, 1088 it->expires = cputime_sub(it->expires,
1089 jiffies_to_cputime(1)); 1089 cputime_one_jiffy);
1090 it->error -= onecputick; 1090 it->error -= onecputick;
1091 } 1091 }
1092 } else 1092 } else
@@ -1461,7 +1461,7 @@ void set_process_cpu_timer(struct task_struct *tsk, unsigned int clock_idx,
1461 if (!cputime_eq(*oldval, cputime_zero)) { 1461 if (!cputime_eq(*oldval, cputime_zero)) {
1462 if (cputime_le(*oldval, now.cpu)) { 1462 if (cputime_le(*oldval, now.cpu)) {
1463 /* Just about to fire. */ 1463 /* Just about to fire. */
1464 *oldval = jiffies_to_cputime(1); 1464 *oldval = cputime_one_jiffy;
1465 } else { 1465 } else {
1466 *oldval = cputime_sub(*oldval, now.cpu); 1466 *oldval = cputime_sub(*oldval, now.cpu);
1467 } 1467 }
@@ -1712,7 +1712,7 @@ static __init int init_posix_cpu_timers(void)
1712 register_posix_clock(CLOCK_PROCESS_CPUTIME_ID, &process); 1712 register_posix_clock(CLOCK_PROCESS_CPUTIME_ID, &process);
1713 register_posix_clock(CLOCK_THREAD_CPUTIME_ID, &thread); 1713 register_posix_clock(CLOCK_THREAD_CPUTIME_ID, &thread);
1714 1714
1715 cputime_to_timespec(jiffies_to_cputime(1), &ts); 1715 cputime_to_timespec(cputime_one_jiffy, &ts);
1716 onecputick = ts.tv_nsec; 1716 onecputick = ts.tv_nsec;
1717 WARN_ON(ts.tv_sec != 0); 1717 WARN_ON(ts.tv_sec != 0);
1718 1718