|
@@ -1205,10 +1205,12 @@ void set_process_cpu_timer(struct task_struct *tsk, unsigned int clock_idx,
|
|
|
u64 *newval, u64 *oldval)
|
|
|
{
|
|
|
u64 now;
|
|
|
+ int ret;
|
|
|
|
|
|
WARN_ON_ONCE(clock_idx == CPUCLOCK_SCHED);
|
|
|
+ ret = cpu_timer_sample_group(clock_idx, tsk, &now);
|
|
|
|
|
|
- if (oldval && cpu_timer_sample_group(clock_idx, tsk, &now) != -EINVAL) {
|
|
|
+ if (oldval && ret != -EINVAL) {
|
|
|
/*
|
|
|
* We are setting itimer. The *oldval is absolute and we update
|
|
|
* it to be relative, *newval argument is relative and we update
|