aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/itimer.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/itimer.c')
-rw-r--r--kernel/itimer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/itimer.c b/kernel/itimer.c
index 21adff7b2a17..8078a32d3b10 100644
--- a/kernel/itimer.c
+++ b/kernel/itimer.c
@@ -64,7 +64,7 @@ static void get_cpu_itimer(struct task_struct *tsk, unsigned int clock_id,
64 64
65 if (cputime_le(cval, t)) 65 if (cputime_le(cval, t))
66 /* about to fire */ 66 /* about to fire */
67 cval = jiffies_to_cputime(1); 67 cval = cputime_one_jiffy;
68 else 68 else
69 cval = cputime_sub(cval, t); 69 cval = cputime_sub(cval, t);
70 } 70 }
@@ -161,7 +161,7 @@ static void set_cpu_itimer(struct task_struct *tsk, unsigned int clock_id,
161 if (!cputime_eq(cval, cputime_zero) || 161 if (!cputime_eq(cval, cputime_zero) ||
162 !cputime_eq(nval, cputime_zero)) { 162 !cputime_eq(nval, cputime_zero)) {
163 if (cputime_gt(nval, cputime_zero)) 163 if (cputime_gt(nval, cputime_zero))
164 nval = cputime_add(nval, jiffies_to_cputime(1)); 164 nval = cputime_add(nval, cputime_one_jiffy);
165 set_process_cpu_timer(tsk, clock_id, &nval, &cval); 165 set_process_cpu_timer(tsk, clock_id, &nval, &cval);
166 } 166 }
167 it->expires = nval; 167 it->expires = nval;