Re: [PATCH][RFC] ide: pdc202xxx_new: Remove do_gettimeofday() usage for ktime_get
From: Arnd Bergmann
Date: Wed Jan 07 2015 - 16:38:00 EST
On Wednesday 07 January 2015 13:01:33 John Stultz wrote:
> + usec_elapsed = (long)ktime_to_ns(ktime_sub(end_time, start_time))/1000;
>
This should use ktime_us_delta for brevity. Doing the 32-bit division that
you have here is probably slightly more efficient because it avoids do_div(),
but it's not performance critical.
Arnd
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/