Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 260393
b: refs/heads/master
c: 2c4f57d
h: refs/heads/master
i:
  260391: b48386d
v: v3
  • Loading branch information
Thomas Gleixner authored and Linus Torvalds committed Jul 26, 2011
1 parent 0f1f76c commit 6337325
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b45d59fb92f60c9c3cda01355d42b907b863e47a
refs/heads/master: 2c4f57d12df7696d65b0247bfd57fd082a7719e6
3 changes: 3 additions & 0 deletions trunk/drivers/rtc/interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,8 @@ int rtc_irq_set_state(struct rtc_device *rtc, struct rtc_task *task, int enabled
err = -EBUSY;
if (rtc->irq_task != task)
err = -EACCES;
if (err)
goto out;

if (enabled) {
ktime_t period = ktime_set(0, NSEC_PER_SEC/rtc->irq_freq);
Expand All @@ -664,6 +666,7 @@ int rtc_irq_set_state(struct rtc_device *rtc, struct rtc_task *task, int enabled
hrtimer_cancel(&rtc->pie_timer);
}
rtc->pie_enabled = enabled;
out:
spin_unlock_irqrestore(&rtc->irq_task_lock, flags);

return err;
Expand Down

0 comments on commit 6337325

Please sign in to comment.