Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144623
b: refs/heads/master
c: 6e85c5b
h: refs/heads/master
i:
  144621: 9bccd01
  144619: 2e81b4f
  144615: ae1b810
  144607: 075269d
v: v3
  • Loading branch information
H Hartley Sweeten authored and Ingo Molnar committed Apr 30, 2009
1 parent c733102 commit 27eded8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 314eeac9e35d8b934dd7a09ed3a8e00d41977b84
refs/heads/master: 6e85c5ba73c07b990798087e9b858c065db2b234
8 changes: 4 additions & 4 deletions trunk/kernel/posix-cpu-timers.c
Original file line number Diff line number Diff line change
Expand Up @@ -1420,19 +1420,19 @@ void run_posix_cpu_timers(struct task_struct *tsk)
* timer call will interfere.
*/
list_for_each_entry_safe(timer, next, &firing, it.cpu.entry) {
int firing;
int cpu_firing;

spin_lock(&timer->it_lock);
list_del_init(&timer->it.cpu.entry);
firing = timer->it.cpu.firing;
cpu_firing = timer->it.cpu.firing;
timer->it.cpu.firing = 0;
/*
* The firing flag is -1 if we collided with a reset
* of the timer, which already reported this
* almost-firing as an overrun. So don't generate an event.
*/
if (likely(firing >= 0)) {
if (likely(cpu_firing >= 0))
cpu_timer_fire(timer);
}
spin_unlock(&timer->it_lock);
}
}
Expand Down

0 comments on commit 27eded8

Please sign in to comment.