コード例 #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
ファイル: timestamp.c プロジェクト: AdriDlu/coreboot
/* 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
ファイル: arch_timer.c プロジェクト: MattDevo/coreboot
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
ファイル: timer.c プロジェクト: RafaelRMachado/Coreboot
void timer_monotonic_get(struct mono_time *mt)
{
    mono_time_set_usecs(mt, timer_raw_value() / CLOCKS_PER_USEC);
}
コード例 #7
0
ファイル: timer.c プロジェクト: canistation/coreboot
void timer_monotonic_get(struct mono_time *mt)
{
	mono_time_set_usecs(mt, timer_raw_value() / clocks_per_usec);
}
コード例 #8
0
ファイル: monotonic_timer.c プロジェクト: AdriDlu/coreboot
void timer_monotonic_get(struct mono_time *mt)
{
	mono_time_set_usecs(mt, read32((void *)TEGRA_TMRUS_BASE));
}
コード例 #9
0
ファイル: timer.c プロジェクト: canistation/coreboot
void timer_monotonic_get(struct mono_time *mt)
{
	mono_time_set_usecs(mt, timer_raw_value() / GPT_MHZ);
}
コード例 #10
0
ファイル: timer.c プロジェクト: sinetek/coreboot-peppy
void timer_monotonic_get(struct mono_time *mt)
{
        mono_time_set_usecs(mt, read32(&mt8173_gpt->gpt4_cnt) / GPT4_MHZ);
}