/*
 * Returns current time from boot in nsecs. It's OK for this to wrap
 * around for now, as it's just a relative time stamp.
 */
unsigned long long notrace sched_clock(void)
{
	unsigned long long ret;

	ret = (unsigned long long)omap_32k_read();
	ret = (ret * clocksource_32k.mult_orig) >> clocksource_32k.shift;
	return ret;
}
Esempio n. 2
0
/*
 * Returns current time from boot in nsecs. It's OK for this to wrap
 * around for now, as it's just a relative time stamp.
 */
unsigned long long sched_clock(void)
{
	return omap_32k_ticks_to_nsecs(omap_32k_read());
}