Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 371605
b: refs/heads/master
c: 6d1d1cc
h: refs/heads/master
i:
  371603: d6bae2a
v: v3
  • Loading branch information
Ben Skeggs committed Apr 26, 2013
1 parent ab74ef3 commit 216d9cb
Show file tree
Hide file tree
Showing 2 changed files with 10 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: 10caad339c458df47e5a9e16e148087fcde98fec
refs/heads/master: 6d1d1cc97b8b24e9f7842de13f4b00393392c990
13 changes: 9 additions & 4 deletions trunk/drivers/gpu/drm/nouveau/core/subdev/timer/nv04.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,16 @@ nv04_timer_alarm(struct nouveau_timer *ptimer, u64 time,

/* append new alarm to list, in soonest-alarm-first order */
spin_lock_irqsave(&priv->lock, flags);
list_for_each_entry(list, &priv->alarms, head) {
if (list->timestamp > alarm->timestamp)
break;
if (!time) {
if (!list_empty(&alarm->head))
list_del(&alarm->head);
} else {
list_for_each_entry(list, &priv->alarms, head) {
if (list->timestamp > alarm->timestamp)
break;
}
list_add_tail(&alarm->head, &list->head);
}
list_add_tail(&alarm->head, &list->head);
spin_unlock_irqrestore(&priv->lock, flags);

/* process pending alarms */
Expand Down

0 comments on commit 216d9cb

Please sign in to comment.