进程调度之time_init

2.6.23的内核


void __init time_init(void)
	=>tsc_init();
		=>cpu_khz = calculate_cpu_khz();
		tsc_khz = cpu_khz;
		=>clocksource_register(&clocksource_tsc);
	=>late_time_init = choose_time_init();
		=>#define choose_time_init() hpet_time_init
			=>hpet_time_init
				=>if (!hpet_enable())
					setup_pit_timer();
				=>time_init_hook();
					=>irq0.mask = cpumask_of_cpu(0);
					=>setup_irq(0, &irq0);

你可能感兴趣的:(linux内核)