Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 88583
b: refs/heads/master
c: 068c922
h: refs/heads/master
i:
  88581: e45f01b
  88579: 9ce80f5
  88575: 31b55bb
v: v3
  • Loading branch information
Andi Kleen authored and Ingo Molnar committed Apr 17, 2008
1 parent 3f4ab47 commit b735c77
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: b62576a2f53ad7edf604fedba0da1d4329749b7d
refs/heads/master: 068c9222d0206e8a6a905efeb9f4fe8dde8b5ff5
7 changes: 5 additions & 2 deletions trunk/arch/x86/kernel/rtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ int mach_set_rtc_mmss(unsigned long nowtime)

unsigned long mach_get_cmos_time(void)
{
unsigned int year, mon, day, hour, min, sec, century = 0;
unsigned int status, year, mon, day, hour, min, sec, century = 0;

/*
* If UIP is clear, then we have >= 244 microseconds before
Expand All @@ -119,7 +119,10 @@ unsigned long mach_get_cmos_time(void)
century = CMOS_READ(acpi_gbl_FADT.century);
#endif

if (RTC_ALWAYS_BCD || !(CMOS_READ(RTC_CONTROL) & RTC_DM_BINARY)) {
status = CMOS_READ(RTC_CONTROL);
WARN_ON_ONCE((RTC_ALWAYS_BCD && (status & RTC_DM_BINARY));

if (RTC_ALWAYS_BCD || !(status & RTC_DM_BINARY)) {
BCD_TO_BIN(sec);
BCD_TO_BIN(min);
BCD_TO_BIN(hour);
Expand Down

0 comments on commit b735c77

Please sign in to comment.