Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 88607
b: refs/heads/master
c: 04aaa7b
h: refs/heads/master
i:
  88605: 1c213c4
  88603: 5b4d75d
  88599: edc7a1e
  88591: 3b4c6f3
  88575: 31b55bb
v: v3
  • Loading branch information
David P. Reed authored and Ingo Molnar committed Apr 17, 2008
1 parent b412d91 commit debbf77
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 03ae5768b6110ebaa97dc3e7abf1c3d8bec5f874
refs/heads/master: 04aaa7ba096c707a8df337b29303f1a5a65f0462
8 changes: 4 additions & 4 deletions trunk/arch/x86/kernel/rtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ unsigned char rtc_cmos_read(unsigned char addr)
unsigned char val;

lock_cmos_prefix(addr);
outb_p(addr, RTC_PORT(0));
val = inb_p(RTC_PORT(1));
outb(addr, RTC_PORT(0));
val = inb(RTC_PORT(1));
lock_cmos_suffix(addr);
return val;
}
Expand All @@ -156,8 +156,8 @@ EXPORT_SYMBOL(rtc_cmos_read);
void rtc_cmos_write(unsigned char val, unsigned char addr)
{
lock_cmos_prefix(addr);
outb_p(addr, RTC_PORT(0));
outb_p(val, RTC_PORT(1));
outb(addr, RTC_PORT(0));
outb(val, RTC_PORT(1));
lock_cmos_suffix(addr);
}
EXPORT_SYMBOL(rtc_cmos_write);
Expand Down

0 comments on commit debbf77

Please sign in to comment.