Re: [PATCH v2] timekeeping: get_jiffies_boot_64() for jiffies that include sleep time

From: Arnd Bergmann
Date: Wed Jun 19 2019 - 10:46:31 EST


On Wed, Jun 19, 2019 at 4:24 PM Jason A. Donenfeld <Jason@xxxxxxxxx> wrote:
>
> This enables using the usual get_jiffies_64() but taking into account
> time spent sleeping, giving the high performance characteristics of
> querying jiffies without the drawback.

Can you quantify how much this gains you over ktime_get_coarse_boottime
in practice? You are effectively adding yet another abstraction for time,
which is something I'd hope to avoid unless you have a strong reason other
than it being faster in theory.

How often do you read the current time?

Arnd