Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5665
b: refs/heads/master
c: 403fe5a
h: refs/heads/master
i:
  5663: 73bc119
v: v3
  • Loading branch information
Petr Vandrovec authored and Linus Torvalds committed Aug 5, 2005
1 parent 59083b6 commit f13fa02
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 2f60f8d3573ff90fe5d75a6d11fd2add1248e7d6
refs/heads/master: 403fe5ae57c831968c3dbbaba291ae825a1c5aaa
7 changes: 5 additions & 2 deletions trunk/drivers/char/rtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1209,6 +1209,7 @@ static int rtc_proc_open(struct inode *inode, struct file *file)

void rtc_get_rtc_time(struct rtc_time *rtc_tm)
{
unsigned long uip_watchdog = jiffies;
unsigned char ctrl;
#ifdef CONFIG_MACH_DECSTATION
unsigned int real_year;
Expand All @@ -1224,8 +1225,10 @@ void rtc_get_rtc_time(struct rtc_time *rtc_tm)
* Once the read clears, read the RTC time (again via ioctl). Easy.
*/

if (rtc_is_updating() != 0)
msleep(20);
while (rtc_is_updating() != 0 && jiffies - uip_watchdog < 2*HZ/100) {
barrier();
cpu_relax();
}

/*
* Only the values that we read from the RTC are set. We leave
Expand Down

0 comments on commit f13fa02

Please sign in to comment.