Re: [PATCH v2] timekeeping: Added a function to return tv_sec portion of ktime_get_real_ts64()

From: Thomas Gleixner
Date: Tue Oct 28 2014 - 16:31:41 EST


On Tue, 28 Oct 2014, Arnd Bergmann wrote:
> On Tuesday 28 October 2014 18:13:09 Thomas Gleixner wrote:
> I'd like to apply this patch to my y2038 branch and apply the
> other patches that need it on top, unless you want to still submit
> it for 3.18.

I think I should take these patches for 3.18. We do not create users
yet, but it makes it easier for submaintaners to apply stuff which you
convert. And it lets me have the whole core lot together with other
changes in that area. I create a seperate branch which you can pull
from.

> Regarding the names, should we then have
>
> time64_t ktime_get_real_seconds(void);
> time64_t ktime_get_seconds(void);

I like that one. Moving all the time interfaces to a ktime_ prefix and
let the default implementation as CLOCK_MONOTONIC and the others with
the added '_real', '_boot' ... describe their CLOCK_WHATEVER property
makes it pretty clear.

Thanks,

tglx
--
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/