Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 84679
b: refs/heads/master
c: 0b858e6
h: refs/heads/master
i:
  84677: 1360fab
  84675: 20f32e1
  84671: b1f82ca
v: v3
  • Loading branch information
Li Zefan authored and Linus Torvalds committed Feb 8, 2008
1 parent bfd1bb5 commit 06100b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 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: 818c357802e2791880057fe752dc9ce9e210f772
refs/heads/master: 0b858e6ff9a38b987a83d22e6f2a2f621c80608d
11 changes: 4 additions & 7 deletions trunk/kernel/time/clockevents.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@ void clockevents_exchange_device(struct clock_event_device *old,
*/
void clockevents_notify(unsigned long reason, void *arg)
{
struct list_head *node, *tmp;

spin_lock(&clockevents_lock);
clockevents_do_notify(reason, arg);

Expand All @@ -227,13 +229,8 @@ void clockevents_notify(unsigned long reason, void *arg)
* Unregister the clock event devices which were
* released from the users in the notify chain.
*/
while (!list_empty(&clockevents_released)) {
struct clock_event_device *dev;

dev = list_entry(clockevents_released.next,
struct clock_event_device, list);
list_del(&dev->list);
}
list_for_each_safe(node, tmp, &clockevents_released)
list_del(node);
break;
default:
break;
Expand Down

0 comments on commit 06100b0

Please sign in to comment.