#ifdef CONFIG_PMAC_PBOOK 
#ifdef CONFIG_PM 
pmac_calibrate_decr(void){	struct device_node *cpu;	unsigned int freq, *fp;#ifdef CONFIG_PMAC_PBOOK	pmu_register_sleep_notifier(&time_sleep_notifier);#endif /* CONFIG_PMAC_PBOOK */	/* We assume MacRISC2 machines have correct device-tree	 * calibration. That's better since the VIA itself seems	 * to be slightly off. --BenH	 */	if (!machine_is_compatible("MacRISC2") &&	    !machine_is_compatible("MacRISC3") &&	    !machine_is_compatible("MacRISC4"))		if (via_calibrate_decr())			return;	/* Special case: QuickSilver G4s seem to have a badly calibrated	 * timebase-frequency in OF, VIA is much better on these. We should	 * probably implement calibration based on the KL timer on these	 * machines anyway... -BenH	 */	if (machine_is_compatible("PowerMac3,5"))		if (via_calibrate_decr())			return;	/*	 * The cpu node should have a timebase-frequency property	 * to tell us the rate at which the decrementer counts.	 */	cpu = find_type_devices("cpu");	if (cpu == 0)		panic("can't find cpu node in time_init");	fp = (unsigned int *) get_property(cpu, "timebase-frequency", NULL);	if (fp == 0)		panic("can't get cpu timebase frequency");	freq = *fp;	printk("time_init: decrementer frequency = %u.%.6u MHz\n",	       freq/1000000, freq%1000000);	tb_ticks_per_jiffy = freq / HZ;	tb_to_us = mulhwu_scale_factor(freq, 1000000);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/8c8709334cec803368a432a33e0f2e116d48fe07/pmac_time.c/buggy/arch/ppc/platforms/pmac_time.c