Skip to content

-mm: generic clocksource API -v2

Daniel Walker lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 19 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10-mm: clocksource: increase initcall priorityarch/i386/kernel/hpet.c arch/i386/kernel/i8253.c arch/i386/kernel/tsc.c +5 more+8 -219 replies
2/10-mm: clocksource: small cleanupinclude/linux/clocksource.h kernel/time/clocksource.c kernel/timer.c+8 -71 reply
3/10-mm: clocksource: move old API callskernel/time/clocksource.c+61 -590 replies
4/10-mm: clocksource: add some new API callsarch/i386/kernel/tsc.c include/linux/clocksource.h kernel/time/clocksource.c+179 -801 reply
5/10-mm: clocksource: convert generic timeofdayinclude/linux/clocksource.h kernel/time/clocksource.c kernel/timer.c+178 -2083 replies
6/10-mm: clocksource: add block notifierinclude/linux/clocksource.h kernel/time/clocksource.c kernel/timer.c+38 -11 reply
7/10-mm: clocksource: remove update_callbackarch/i386/kernel/tsc.c include/linux/clocksource.h+28 -281 reply
8/10-mm: clocksource: initialize list valuearch/i386/kernel/hpet.c arch/i386/kernel/i8253.c arch/i386/kernel/tsc.c +4 more+9 -01 reply
9/10-mm: clocksource: add generic sched_clock()arch/i386/Kconfig arch/i386/kernel/tsc.c kernel/sched.c+66 -610 replies
10/10-mm: clocksource: update kernel parametersDocumentation/kernel-parameters.txt+7 -100 replies

Reviews trailers per patch

2 of 10 patches have a Reviewed-by or Acked-by.

PatchJohn Stultz
1/10
2/10A-b
3/10
4/10A-b
5/10
6/10
7/10
8/10
9/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/10] -mm: generic clocksource API -v2

Each patch has it's own change log in the patch header, and each patch compiles and boots if applied individually (but in series order).

---- Original release notes below

This patch set is meant to modify the clocksource structure and API so that it can be used by more than just the timekeeping code. My motivation is mainly that I feel the current clocksource interface could be used for much more than just timekeeping. So if we keep the clocksource interface (which I think we should) then we should get everything out of it that we can.

This set modifies the API, then converts the time keeping code over to the new API. I also added a generic sched_clock() which just re-uses the clocksource interface to provide a high quality scheduling clock (assuming a good clocksource). Several ARM board just output nanoseconds based on jiffies which is still possible with the generic sched_clock().

I tested this on SMP and UP x86, and compile tested for ARM.

Daniel

--