Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 192236
b: refs/heads/master
c: ae1a78e
h: refs/heads/master
v: v3
  • Loading branch information
Stanislaw Gruszka authored and Thomas Gleixner committed Mar 12, 2010
1 parent ebd584e commit 4108221
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5eb9aa6414bdab6d075a8763bc3b647181ef3aab
refs/heads/master: ae1a78eecc45fe41215d9dbfd7079999455772d6
5 changes: 3 additions & 2 deletions trunk/kernel/posix-cpu-timers.c
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ int posix_cpu_timer_set(struct k_itimer *timer, int flags,
struct itimerspec *new, struct itimerspec *old)
{
struct task_struct *p = timer->it.cpu.task;
union cpu_time_count old_expires, new_expires, val;
union cpu_time_count old_expires, new_expires, old_incr, val;
int ret;

if (unlikely(p == NULL)) {
Expand Down Expand Up @@ -707,6 +707,7 @@ int posix_cpu_timer_set(struct k_itimer *timer, int flags,
BUG_ON(!irqs_disabled());

ret = 0;
old_incr = timer->it.cpu.incr;
spin_lock(&p->sighand->siglock);
old_expires = timer->it.cpu.expires;
if (unlikely(timer->it.cpu.firing)) {
Expand Down Expand Up @@ -822,7 +823,7 @@ int posix_cpu_timer_set(struct k_itimer *timer, int flags,
out:
if (old) {
sample_to_timespec(timer->it_clock,
timer->it.cpu.incr, &old->it_interval);
old_incr, &old->it_interval);
}
return ret;
}
Expand Down

0 comments on commit 4108221

Please sign in to comment.