summaryrefslogtreecommitdiffstats
path: root/include/asm-x86/mc146818rtc.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2008-01-30 13:30:26 +0100
committerIngo Molnar <mingo@elte.hu>2008-01-30 13:30:26 +0100
commitfe599f9fbc5d470ec5b55d08f2bbb991ddecbbc8 (patch)
treebe07dcd4062fbcb801ae833678b3818d2fd47ceb /include/asm-x86/mc146818rtc.h
parent6ce60b07e670e800c4c5cfe984ed5188e7a64135 (diff)
downloadlinux-fe599f9fbc5d470ec5b55d08f2bbb991ddecbbc8.tar.bz2
x86: isolate the rtc code for sharing
The mach-default/mach_time.h code inline is moved to arch/x86/kernel/rtc.c and the header files are adjusted. Shrink the 3 dozen includes to the ones we really need. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/mc146818rtc.h')
-rw-r--r--include/asm-x86/mc146818rtc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-x86/mc146818rtc.h b/include/asm-x86/mc146818rtc.h
index 9d39436df231..cdd9f965835a 100644
--- a/include/asm-x86/mc146818rtc.h
+++ b/include/asm-x86/mc146818rtc.h
@@ -92,6 +92,9 @@ static inline unsigned char current_lock_cmos_reg(void)
unsigned char rtc_cmos_read(unsigned char addr);
void rtc_cmos_write(unsigned char val, unsigned char addr);
+extern int mach_set_rtc_mmss(unsigned long nowtime);
+extern unsigned long mach_get_cmos_time(void);
+
#define RTC_IRQ 8
#endif /* _ASM_MC146818RTC_H */