time.c (cb5629b10d64a8006622ce3a52bc887d91057d69) time.c (71a157e8edca55198e808f8561dd49017a54ee34)
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.

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

312{
313 generic_calibrate_decr();
314
315#ifdef CONFIG_PPC32
316 /* We assume MacRISC2 machines have correct device-tree
317 * calibration. That's better since the VIA itself seems
318 * to be slightly off. --BenH
319 */
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.

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

312{
313 generic_calibrate_decr();
314
315#ifdef CONFIG_PPC32
316 /* We assume MacRISC2 machines have correct device-tree
317 * calibration. That's better since the VIA itself seems
318 * to be slightly off. --BenH
319 */
320 if (!machine_is_compatible("MacRISC2") &&
321 !machine_is_compatible("MacRISC3") &&
322 !machine_is_compatible("MacRISC4"))
320 if (!of_machine_is_compatible("MacRISC2") &&
321 !of_machine_is_compatible("MacRISC3") &&
322 !of_machine_is_compatible("MacRISC4"))
323 if (via_calibrate_decr())
324 return;
325
326 /* Special case: QuickSilver G4s seem to have a badly calibrated
327 * timebase-frequency in OF, VIA is much better on these. We should
328 * probably implement calibration based on the KL timer on these
329 * machines anyway... -BenH
330 */
323 if (via_calibrate_decr())
324 return;
325
326 /* Special case: QuickSilver G4s seem to have a badly calibrated
327 * timebase-frequency in OF, VIA is much better on these. We should
328 * probably implement calibration based on the KL timer on these
329 * machines anyway... -BenH
330 */
331 if (machine_is_compatible("PowerMac3,5"))
331 if (of_machine_is_compatible("PowerMac3,5"))
332 if (via_calibrate_decr())
333 return;
334#endif
335}
332 if (via_calibrate_decr())
333 return;
334#endif
335}