Skip to content

Time: Generic Timeofday Subsystem (v B11)

john stultz lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13Time: Reduced NTP rework (part 1)kernel/timer.c+63 -336 replies
2/13Time: Reduced NTP Rework (part 2)include/linux/timex.h kernel/time.c kernel/timer.c+168 -141 reply
3/13Time: Clocksource InfrastructureDocumentation/kernel-parameters.txt include/linux/clocksource.h kernel/Makefile +3 more+689 -41 reply
4/13Time: Generic Timekeeping InfrastructureDocumentation/timekeeping.txt drivers/char/hangcheck-timer.c include/asm-generic/timeofday.h +11 more+1056 -61 reply
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 -201 reply
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 -3301 reply
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 -2551 reply
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 -15070 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 -4572 replies
12/13Time: i386/x86-64 Clocksource Driversarch/i386/kernel/Makefile arch/i386/kernel/hpet.c arch/i386/kernel/i8253.c +6 more+603 -01 reply
13/13Time: Generic Timekeeping Paraniod Debug Patcharch/i386/Kconfig arch/i386/kernel/tsc.c arch/x86_64/Kconfig +2 more+221 -20 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 B11)

All,
The following patchset applies against 2.6.15-rc1-mm2 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.

New in this release:
o Proper sysfs entries (available_clocksources, current_clocksource)
o disable pit clocksource on large smp (it doesn't scale)
o dropped cyclone calibration
o added extra paraniod checks
o NUMAQ should not use TSC
o AMD SMP tsc fallback (similar to x86-64's logic)

Still on the TODO list:
o Fix Frank Sorenson's c3tsc overcompensation problem
o More testing
o Submit to -mm (as soon as the c3tsc issue is resolved)

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.

I'll be out of town for the next couple of days on holiday, so forgive me if I don't respond until after Friday. However, do please let me know if you have any comments or feedback and I'll address them as soon as I get back.

thanks
-john