time.c (0c37ec2aa88bd8a6aaeb284ff5c86f4c6d8e8469) time.c (3136254ca5dfaf53486f7032c674f9b6d7fd1d53)
1/*
2 * Support for periodic interrupts (100 per second) and for getting
3 * the current time from the RTC on Power Macintoshes.
4 *
5 * We use the decrementer register for our periodic interrupts.
6 *
7 * Paul Mackerras August 1996.
8 * Copyright (C) 1996 Paul Mackerras.

--- 185 unchanged lines hidden (view full) ---

194}
195
196#else
197#define smu_get_time() 0
198#define smu_get_rtc_time(tm, spin)
199#define smu_set_rtc_time(tm, spin) 0
200#endif
201
1/*
2 * Support for periodic interrupts (100 per second) and for getting
3 * the current time from the RTC on Power Macintoshes.
4 *
5 * We use the decrementer register for our periodic interrupts.
6 *
7 * Paul Mackerras August 1996.
8 * Copyright (C) 1996 Paul Mackerras.

--- 185 unchanged lines hidden (view full) ---

194}
195
196#else
197#define smu_get_time() 0
198#define smu_get_rtc_time(tm, spin)
199#define smu_set_rtc_time(tm, spin) 0
200#endif
201
202unsigned long pmac_get_boot_time(void)
202unsigned long __init pmac_get_boot_time(void)
203{
204 /* Get the time from the RTC, used only at boot time */
205 switch (sys_ctrler) {
206 case SYS_CTRLER_CUDA:
207 return cuda_get_time();
208 case SYS_CTRLER_PMU:
209 return pmu_get_time();
210 case SYS_CTRLER_SMU:

--- 150 unchanged lines hidden ---
203{
204 /* Get the time from the RTC, used only at boot time */
205 switch (sys_ctrler) {
206 case SYS_CTRLER_CUDA:
207 return cuda_get_time();
208 case SYS_CTRLER_PMU:
209 return pmu_get_time();
210 case SYS_CTRLER_SMU:

--- 150 unchanged lines hidden ---