/* Returns the raw monotonic time (completely un-modified by ntp)  */
void getrawmonotonic(struct timespec *ts)
/* Returns the raw monotonic time (completely un-modified by ntp)  */
void getrawmonotonic(struct timespec *ts)
{
	unsigned long seq;
	s64 nsecs;
	do {
		seq = read_seqbegin(&xtime_lock);
		nsecs = timekeeping_get_ns_raw();
		*ts = raw_time;
	} while (read_seqretry(&xtime_lock, seq));
	timespec_add_ns(ts, nsecs);
}