Commit 0f65c8af authored by Philippe Gerum's avatar Philippe Gerum Committed by Jan Kiszka

lib/cobalt: ticks: drop cobalt_read_hrclock()

As we move away from the representation of time based on hardware
clock ticks, keeping cobalt_read_hrclock() makes no sense anymore.

This was an internal, undocumented service returning the hardware TSC
value for the platform. The log of commit #d584a57d which introduced it
clearly stated that applications should stick with the common
representation used by clock_gettime(), i.e. nanosecs.
Signed-off-by: Philippe Gerum's avatarPhilippe Gerum <rpm@xenomai.org>
parent 4d5919e6
......@@ -24,8 +24,6 @@
extern "C" {
#endif
xnticks_t cobalt_read_hrclock(void);
xnsticks_t cobalt_ticks_to_ns(xnsticks_t ticks);
xnsticks_t cobalt_ticks_to_ns_rounded(xnsticks_t ticks);
......
......@@ -99,11 +99,6 @@ unsigned long long cobalt_divrem_billion(unsigned long long value,
}
#endif /* !XNARCH_HAVE_NODIV_LLIMD */
xnticks_t cobalt_read_hrclock(void)
{
return cobalt_read_tsc();
}
void cobalt_ticks_init(unsigned long long freq)
{
clockfreq = freq;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment