/* Finish delay accounting for a statistic using its timestamps (@start, @end), accumalator (@total) and @count  */
static void delayacct_end(struct timespec *start, struct timespec *end, u64 *total, u32 *count)
/* Finish delay accounting for a statistic using its timestamps (@start, @end), accumalator (@total) and @count  */
static void delayacct_end(struct timespec *start, struct timespec *end, u64 *total, u32 *count)
{
	struct timespec ts;
	s64 ns;
	unsigned long flags;
	do_posix_clock_monotonic_gettime(end);
	ts = timespec_sub(*end, *start);
	ns = timespec_to_ns(&ts);
	if (ns < 0)
		return;
	spin_lock_irqsave(&current->delays->lock, flags);
	*total += ns;
	(*count)++;
	spin_unlock_irqrestore(&current->delays->lock, flags);
}