Skip to content

Time: Generic Timeofday Subsystem (v B10)

john stultz lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13Time: Reduced NTP rework (part 1)kernel/timer.c+63 -330 replies
2/13Time: Reduced NTP Rework (part 2)include/linux/timex.h kernel/time.c kernel/timer.c+168 -140 replies
3/13Time: Clocksource InfrastructureDocumentation/kernel-parameters.txt include/linux/clocksource.h kernel/Makefile +3 more+665 -40 replies
4/13Time: Generic Timekeeping InfrastructureDocumentation/timekeeping.txt drivers/char/hangcheck-timer.c include/asm-generic/timeofday.h +11 more+1056 -60 replies
5/13Time: i386 Conversion - part 1: Move timer_pit.c to i8253.carch/i386/kernel/Makefile arch/i386/kernel/i8253.c arch/i386/kernel/time.c +1 more+58 -200 replies
6/13Time: i386 Conversion - part 2: Move timer_tsc.c to tsc.carch/i386/kernel/Makefile arch/i386/kernel/timers/common.c arch/i386/kernel/timers/timer_tsc.c +3 more+349 -3300 replies
7/13Time: i386 Conversion - part 3: Rework TSC Supportarch/i386/kernel/setup.c arch/i386/kernel/tsc.c drivers/acpi/processor_idle.c +3 more+122 -930 replies
8/13Time: i386 Conversion - part 4: ACPI PM variable renamingarch/i386/kernel/acpi/boot.c+10 -80 replies
9/13Time: i386 Conversion - part 5: Enable Generic Timekeepingarch/i386/Kconfig arch/i386/kernel/Makefile arch/i386/kernel/time.c +5 more+92 -2550 replies
10/13Time: i386 Conversion - part 6: Remove Old Codearch/i386/kernel/timers/Makefile arch/i386/kernel/timers/common.c arch/i386/kernel/timers/timer.c +6 more+0 -15060 replies
11/13Time: x86-64 Conversion to Generic Timekeepingarch/i386/kernel/acpi/boot.c arch/x86_64/Kconfig arch/x86_64/kernel/Makefile +9 more+353 -4570 replies
12/13Time: i386/x86-64 Clocksource Driversarch/i386/kernel/Makefile arch/i386/kernel/hpet.c arch/i386/kernel/i8253.c +6 more+609 -00 replies
13/13Time: Generic Timekeeping Paraniod Debug Patcharch/i386/Kconfig arch/i386/kernel/tsc.c arch/x86_64/Kconfig +2 more+209 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/13] Time: Generic Timeofday Subsystem (v B10)

All,
I had hoped to submit this to -mm today, but since Ingo pointed
out an issue in the __delay code, I'm going to wait a week so the new fix can be better tested.

The following patchset applies against 2.6.14-mm2 (with some offsets
and fuzz) and provides a generic timekeeping subsystem that is independent of the timer interrupt. This allows for robust and correct behavior in cases of late or lost ticks, avoids interpolation errors, reduces duplication in arch specific code, and allows or assists future changes such as high-res timers, dynamic ticks, or realtime preemption. Additionally, it provides finer nanosecond resolution values to the clock_gettime functions.

The patch set provides the minimal NTP changes, the clocksource abstraction, the core timekeeping code as well as the code to convert the i386 and x86-64 archs. I have started on converting more arches, but for now I'm focusing on i386 and x86-64.

Thomas Gleixner has been quite helpful in deeply reviewing and suggesting changes to the code, so many thanks to him for his help!

New in this release:
o Use ktimer for periodic_hook
o minor performance tweaks
o i386 __delay fix
o docs and howtos in Documentation/timekeeping.txt

Still on the TODO list:
o Get a weeks worth of testing
o Submit to -mm (planned for the next release)

I'd like to thank the following people who have contributed ideas, criticism, testing and code that has helped shape this work:

George Anzinger, Nish Aravamudan, Max Asbock, Dominik Brodowski, Thomas Gleixner, Darren Hart, Christoph Lameter, Matt Mackal, Keith Mannthey, Ingo Molnar, Martin Schwidefsky, Frank Sorenson, Ulrich Windl, Darrick Wong, Roman Zippel and any others whom I've accidentally forgotten.

Please let me know if you have any comments or feedback.

thanks
-john