コード例 #1
0
ファイル: time.c プロジェクト: 12019/linux-2.6.34-ts471x
void __init time_init(void)
{
	plat_time_init();

	if (!mips_clockevent_init() || !cpu_has_mfc0_count_bug())
		init_mips_clocksource();
}
コード例 #2
0
ファイル: time.c プロジェクト: tinyclub/preempt-rt-linux
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();
}
コード例 #3
0
ファイル: time.c プロジェクト: jing-git/rt-n56u
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();
}
コード例 #4
0
ファイル: time.c プロジェクト: stas2z/linux-3.10-witi
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();
}
コード例 #5
0
void __init time_init(void)
{
	plat_time_init();
}