Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 88584
b: refs/heads/master
c: 45de707
h: refs/heads/master
v: v3
  • Loading branch information
Andi Kleen authored and Ingo Molnar committed Apr 17, 2008
1 parent b735c77 commit 86cb83e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: 068c9222d0206e8a6a905efeb9f4fe8dde8b5ff5
refs/heads/master: 45de70791165ce7eac5232ed5a7c31152567f4da
5 changes: 2 additions & 3 deletions trunk/arch/x86/kernel/rtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,14 @@ unsigned long mach_get_cmos_time(void)
mon = CMOS_READ(RTC_MONTH);
year = CMOS_READ(RTC_YEAR);

#if defined(CONFIG_ACPI) && defined(CONFIG_X86_64)
/* CHECKME: Is this really 64bit only ??? */
#ifdef CONFIG_ACPI
if (acpi_gbl_FADT.header.revision >= FADT2_REVISION_ID &&
acpi_gbl_FADT.century)
century = CMOS_READ(acpi_gbl_FADT.century);
#endif

status = CMOS_READ(RTC_CONTROL);
WARN_ON_ONCE((RTC_ALWAYS_BCD && (status & RTC_DM_BINARY));
WARN_ON_ONCE(RTC_ALWAYS_BCD && (status & RTC_DM_BINARY));

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

0 comments on commit 86cb83e

Please sign in to comment.