Re: [PATCH 6/8] time: Move arch_gettimeoffset() usage intotimekeeping_get_ns()
From: Ingo Molnar
Date: Fri Jul 13 2012 - 02:10:46 EST
* John Stultz <john.stultz@xxxxxxxxxx> wrote:
> + nsec >>= timekeeper.shift;
> +
> + /* If arch requires, add in gettimeoffset() */
> + nsec += arch_gettimeoffset();
> + return nsec;
As a factoring out bonus, this could be further shortened to:
return nsec + arch_gettimeoffset();
> + /* If arch requires, add in gettimeoffset() */
> + nsec += arch_gettimeoffset();
> + return nsec;
Ditto.
Thanks,
Ingo
--
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/