예제 #1
0
void timer_monotonic_get(struct mono_time *mt)
{
    /* We don't have to call mct_start() here
     * because it was already called int he bootblock
     */

    mono_time_set_usecs(mt, mct_raw_value() / clocks_per_usec);
}
예제 #2
0
void timer_monotonic_get(struct mono_time *mt)
{
	if (!initialized) {
		mct_start();
		initialized = 1;
	}

	mono_time_set_usecs(mt, mct_raw_value() / clocks_per_usec);
}
예제 #3
0
/* Provide default timestamp implementation using monotonic timer. */
uint64_t  __attribute__((weak)) timestamp_get(void)
{
	struct mono_time t1, t2;

	if (!IS_ENABLED(CONFIG_HAVE_MONOTONIC_TIMER))
		return 0;

	mono_time_set_usecs(&t1, 0);
	timer_monotonic_get(&t2);

	return mono_time_diff_microseconds(&t1, &t2);
}
예제 #4
0
void timer_monotonic_get(struct mono_time *mt)
{
	if (HLS()->time == NULL)
		die("time not set in HLS");
	mono_time_set_usecs(mt, (long)read64((void *)(HLS()->time)));
}
예제 #5
0
파일: timer.c 프로젝트: AdriDlu/coreboot
void timer_monotonic_get(struct mono_time *mt)
{
	mono_time_set_usecs(mt, TIMER_USECS(read_gcnt_val()));
}
예제 #6
0
void timer_monotonic_get(struct mono_time *mt)
{
    mono_time_set_usecs(mt, timer_raw_value() / CLOCKS_PER_USEC);
}
예제 #7
0
void timer_monotonic_get(struct mono_time *mt)
{
	mono_time_set_usecs(mt, timer_raw_value() / clocks_per_usec);
}
예제 #8
0
void timer_monotonic_get(struct mono_time *mt)
{
	mono_time_set_usecs(mt, read32((void *)TEGRA_TMRUS_BASE));
}
예제 #9
0
void timer_monotonic_get(struct mono_time *mt)
{
	mono_time_set_usecs(mt, timer_raw_value() / GPT_MHZ);
}
예제 #10
0
void timer_monotonic_get(struct mono_time *mt)
{
        mono_time_set_usecs(mt, read32(&mt8173_gpt->gpt4_cnt) / GPT4_MHZ);
}