void __init time_init(void) { plat_time_init(); if (!mips_clockevent_init() || !cpu_has_mfc0_count_bug()) init_mips_clocksource(); }
void __init time_init(void) { #ifdef CONFIG_HR_SCHED_CLOCK if (!mips_clockevent_init() || !cpu_has_mfc0_count_bug()) write_c0_count(0); #endif plat_time_init(); if (!mips_clockevent_init() || !cpu_has_mfc0_count_bug()) init_mips_clocksource(); }
void __init time_init(void) { plat_time_init(); /* * The use of the R4k timer as a clock event takes precedence; * if reading the Count register might interfere with the timer * interrupt, then we don't use the timer as a clock source. * We may still use the timer as a clock source though if the * timer interrupt isn't reliable; the interference doesn't * matter then, because we don't use the interrupt. */ if (mips_clockevent_init() != 0 || !cpu_has_mfc0_count_bug()) init_mips_clocksource(); }
void __init time_init(void) { #ifdef CONFIG_MET #ifdef CONFIG_CPU_SUPPORTS_HR_SCHED_CLOCK if (!mips_clockevent_init() || !cpu_has_mfc0_count_bug()) write_c0_count(0); #endif #endif plat_time_init(); /* * The use of the R4k timer as a clock event takes precedence; * if reading the Count register might interfere with the timer * interrupt, then we don't use the timer as a clock source. * We may still use the timer as a clock source though if the * timer interrupt isn't reliable; the interference doesn't * matter then, because we don't use the interrupt. */ if (mips_clockevent_init() != 0 || !cpu_has_mfc0_count_bug()) init_mips_clocksource(); }