Re: [PATCH] selftests/timers: Fix integer overlow errors on 32 bit systems

From: Terry Tritton
Date: Wed Jun 04 2025 - 04:34:26 EST


> So this seems to be undoing commit 80fa614e2fbc ("selftests: timers:
> Remove local NSEC_PER_SEC and USEC_PER_SEC defines")
Thanks John, I somehow missed 80fa614e2fbc and was wondering how
this had got in.

> Would it make more sense to fix the NSEC_PER_SEC definition in time64.h to a LL?
I was just thinking the same this morning but wasn't sure if this would cause
issues anywhere else.

I'll send a patch to change NSEC_PER_SEC in time64.h as its a lot cleaner
that way.

Thanks
Terry