Skip to content

timekeeping: Cure the signed/unsigned wreckage

Thomas Gleixner lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 23 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6timekeeping: Force unsigned clocksource to nanoseconds conversionkernel/time/timekeeping.c+2 -21 reply
2/6timekeeping: Make the conversion call chain consistently unsignedkernel/time/timekeeping.c+13 -131 reply
3/6timekeeping: Get rid of pointless typecastskernel/time/timekeeping.c+2 -31 reply
4/6timekeeping: Use mul_u64_u32_shr() instead of open coding itkernel/time/timekeeping.c+5 -211 reply
5/6timekeeping: Provide optional 128bit mathkernel/time/Kconfig kernel/time/timekeeping.c+51 -216 replies
6/6timekeeping: Get rid of cycle_tarch/alpha/kernel/time.c arch/arc/kernel/time.c arch/arm/mach-davinci/time.c +129 more+318 -3211 reply

Reviews trailers per patch

5 of 6 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchThomas GleixnerDavid GibsonPeter Zijlstra (Intel)Chris Metcalf
SeriesA-b
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6A-b
6/6Not-Signed-off-by Not-Reviewed-by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [patch 0/6] timekeeping: Cure the signed/unsigned wreckage

This series addresses the recently reintroduced signed vs. unsigned wreckage by cleaning up the whole call chain instead of just making a simple s64 -> u64 'fix' at one point and keeping the rest signed, which eventually led to the unintended signed conversion and brought back an issue that was fixed a year ago already.

Here is the queue:

timekeeping: Force unsigned clocksource to nanoseconds conversions
timekeeping: Make the conversion call chain consistently unsigned
timekeeping: Get rid of pointless typecasts

These three patches are definitely urgent material

timekeeping: Use mul_u64_u32_shr() instead of open coding it

Can wait for 4.11, but for sanity reasons it should go into 4.10

[RFD] timekeeping: Provide optional 128bit math

This is material for discussion. I'm not sure if we want to do that at all, but it addresses the insanities of long time scheduled out VMs.

[RFD] timekeeping: Get rid of cycle_t

This one cannot be merged right away as there are further cycles_t users in next. I merily added it for reference and it can be done around rc1 time by running a coccinelle script.

Thanks,

tglx