/* Returns the timeval representation of the nsec parameter.  */
struct timeval ns_to_timeval(const s64 nsec)
/* Returns the timeval representation of the nsec parameter.  */
struct timeval ns_to_timeval(const s64 nsec)
{
	struct timespec ts = ns_to_timespec(nsec);
	struct timeval tv;
	tv.tv_sec = ts.tv_sec;
	tv.tv_usec = (suseconds_t) ts.tv_nsec / 1000;
	return tv;
}