4 extern void hpet_time_init(void);
6 #include <asm/mc146818rtc.h>
10 static inline unsigned long native_get_wallclock(void)
15 retval = efi_get_time();
17 retval = mach_get_cmos_time();
22 static inline int native_set_wallclock(unsigned long nowtime)
27 retval = efi_set_rtc_mmss(nowtime);
29 retval = mach_set_rtc_mmss(nowtime);
35 extern void native_time_init_hook(void);
37 static inline unsigned long native_get_wallclock(void)
39 return mach_get_cmos_time();
42 static inline int native_set_wallclock(unsigned long nowtime)
44 return mach_set_rtc_mmss(nowtime);
49 #ifdef CONFIG_PARAVIRT
50 #include <asm/paravirt.h>
51 #else /* !CONFIG_PARAVIRT */
53 #define get_wallclock() native_get_wallclock()
54 #define set_wallclock(x) native_set_wallclock(x)
55 #define choose_time_init() hpet_time_init
57 #endif /* CONFIG_PARAVIRT */
59 extern unsigned long __init calibrate_cpu(void);