diff options
Diffstat (limited to 'include/asm-x86/time.h')
-rw-r--r-- | include/asm-x86/time.h | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/include/asm-x86/time.h b/include/asm-x86/time.h index eac011366dc2..68779b048a3e 100644 --- a/include/asm-x86/time.h +++ b/include/asm-x86/time.h | |||
@@ -1,8 +1,12 @@ | |||
1 | #ifndef _ASMi386_TIME_H | 1 | #ifndef _ASMX86_TIME_H |
2 | #define _ASMi386_TIME_H | 2 | #define _ASMX86_TIME_H |
3 | 3 | ||
4 | extern void (*late_time_init)(void); | ||
5 | extern void hpet_time_init(void); | ||
6 | |||
7 | #include <asm/mc146818rtc.h> | ||
8 | #ifdef CONFIG_X86_32 | ||
4 | #include <linux/efi.h> | 9 | #include <linux/efi.h> |
5 | #include "mach_time.h" | ||
6 | 10 | ||
7 | static inline unsigned long native_get_wallclock(void) | 11 | static inline unsigned long native_get_wallclock(void) |
8 | { | 12 | { |
@@ -28,8 +32,20 @@ static inline int native_set_wallclock(unsigned long nowtime) | |||
28 | return retval; | 32 | return retval; |
29 | } | 33 | } |
30 | 34 | ||
31 | extern void (*late_time_init)(void); | 35 | #else |
32 | extern void hpet_time_init(void); | 36 | extern void native_time_init_hook(void); |
37 | |||
38 | static inline unsigned long native_get_wallclock(void) | ||
39 | { | ||
40 | return mach_get_cmos_time(); | ||
41 | } | ||
42 | |||
43 | static inline int native_set_wallclock(unsigned long nowtime) | ||
44 | { | ||
45 | return mach_set_rtc_mmss(nowtime); | ||
46 | } | ||
47 | |||
48 | #endif | ||
33 | 49 | ||
34 | #ifdef CONFIG_PARAVIRT | 50 | #ifdef CONFIG_PARAVIRT |
35 | #include <asm/paravirt.h> | 51 | #include <asm/paravirt.h> |