MCPcopy Create free account
hub / github.com/coreboot/coreboot / timestamp_set_tick_freq

Function timestamp_set_tick_freq

util/cbmem/cbmem.c:101–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99static unsigned long tick_freq_mhz;
100
101static void timestamp_set_tick_freq(unsigned long table_tick_freq_mhz)
102{
103 tick_freq_mhz = table_tick_freq_mhz;
104
105 /* Honor table frequency if present. */
106 if (!tick_freq_mhz)
107 tick_freq_mhz = arch_tick_frequency();
108
109 if (!tick_freq_mhz) {
110 fprintf(stderr, "Cannot determine timestamp tick frequency.\n");
111 exit(1);
112 }
113
114 debug("Timestamp tick frequency: %ld MHz\n", tick_freq_mhz);
115}
116
117static uint64_t arch_convert_raw_ts_entry(uint64_t ts)
118{

Callers 1

dump_timestampsFunction · 0.70

Calls 3

arch_tick_frequencyFunction · 0.85
fprintfFunction · 0.85
exitFunction · 0.85

Tested by

no test coverage detected