Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18012
b: refs/heads/master
c: 5329e13
h: refs/heads/master
v: v3
  • Loading branch information
Jan Beulich authored and Linus Torvalds committed Jan 12, 2006
1 parent 9f7937b commit d0555e3
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: bdf2b1c9fedf76a1797216559f221e5eaa7a1eab
refs/heads/master: 5329e13d0bd82e13814050eb9facb25eedde4bbc
11 changes: 4 additions & 7 deletions trunk/arch/x86_64/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,8 @@ unsigned long long sched_clock(void)

static unsigned long get_cmos_time(void)
{
unsigned int timeout, year, mon, day, hour, min, sec;
unsigned char last, this;
unsigned int timeout = 1000000, year, mon, day, hour, min, sec;
unsigned char uip = 0, this = 0;
unsigned long flags;

/*
Expand All @@ -518,11 +518,8 @@ static unsigned long get_cmos_time(void)

spin_lock_irqsave(&rtc_lock, flags);

timeout = 1000000;
last = this = 0;

while (timeout && last && !this) {
last = this;
while (timeout && (!uip || this)) {
uip |= this;
this = CMOS_READ(RTC_FREQ_SELECT) & RTC_UIP;
timeout--;
}
Expand Down

0 comments on commit d0555e3

Please sign in to comment.