Skip to content

Update clocksource registration

Russell King - ARM Linux linux-arm-kernel linux-arm-msm linux-omap linux-samsung-soc 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest24 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/24ARM: AT91: update clock source registrationarch/arm/mach-at91/at91rm9200_time.c arch/arm/mach-at91/at91sam926x_time.c+2 -60 replies
2/24ARM: bcmring: update clock source registrationarch/arm/mach-bcmring/core.c+4 -104 replies
3/24ARM: davinci: update clock source registrationarch/arm/mach-davinci/time.c+2 -50 replies
4/24ARM: integrator: update clock source registrationarch/arm/mach-integrator/integrator_ap.c+1 -30 replies
5/24ARM: ixp4xx: update clock source registrationarch/arm/mach-ixp4xx/common.c+1 -50 replies
6/24ARM: lpc32xx: update clock source registrationarch/arm/mach-lpc32xx/timer.c+1 -40 replies
7/24ARM: mmp: update clock source registrationarch/arm/mach-mmp/time.c+1 -40 replies
8/24ARM: MSM: update clock source registrationarch/arm/mach-msm/timer.c+1 -41 reply
9/24ARM: netx: update clock source registrationarch/arm/mach-netx/time.c+1 -40 replies
10/24ARM: ns9xxx: update clock source registrationarch/arm/mach-ns9xxx/time-ns9360.c+1 -50 replies
11/24ARM: omap: update clock source registrationarch/arm/mach-omap1/time.c arch/arm/mach-omap2/timer-gp.c arch/arm/plat-omap/counter_32k.c+3 -140 replies
12/24ARM: PXA: update clock source registrationarch/arm/mach-pxa/time.c+1 -51 reply
12/24ARM: PXA: update clock source registration+0 -01 reply
13/24ARM: s5pv310: update clock source registrationarch/arm/mach-s5pv310/time.c+1 -51 reply
14/24ARM: SA11x0: update clock source registrationarch/arm/mach-sa1100/time.c+1 -50 replies
15/24ARM: tcc8k: update clock source registrationarch/arm/mach-tcc8k/time.c+1 -40 replies
16/24ARM: U300: update clock source registrationarch/arm/mach-u300/timer.c+1 -31 reply
17/24ARM: nuc: update clock source registrationarch/arm/mach-w90x900/time.c+1 -40 replies
18/24ARM: iop: update clock source registrationarch/arm/plat-iop/time.c+1 -30 replies
19/24ARM: mxc: update clock source registrationarch/arm/plat-mxc/epit.c arch/arm/plat-mxc/time.c+2 -81 reply
20/24ARM: nomadik: update clock source registrationarch/arm/plat-nomadik/timer.c+1 -21 reply
21/24ARM: spear: update clock source registrationarch/arm/plat-spear/time.c+1 -51 reply
22/24ARM: orion: update clock source registrationarch/arm/plat-orion/time.c+1 -31 reply
23/24ARM: stmp: update clock source registrationarch/arm/plat-stmp3xxx/timer.c+1 -40 replies
24/24ARM: realview/versatile: update clock source registrationarch/arm/plat-versatile/timer-sp.c+1 -30 replies

Reviews trailers per patch

7 of 25 patches have a Reviewed-by or Acked-by.

PatchNicolas PitreScott BrandenLinus WalleijViresh KumarSascha HauerJeff OhlsteinKukjin Kim
1/24
2/24A-b A-b A-b A-b
3/24
4/24
5/24
6/24
7/24
8/24T-b
9/24
10/24
11/24
12/24
12/24
13/24A-b
14/24
15/24
16/24A-b
17/24
18/24
19/24A-b
20/24A-b
21/24A-b
22/24A-b
23/24
24/24

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

Read the v1 thread

Cover letter [PATCH 0/24] Update clocksource registration

John Stultz notes in his commit:

clocksource: Add clocksource_register_hz/khz interface

How to pick good mult/shift pairs has always been difficult to describe to folks writing clocksource drivers, since it requires careful tradeoffs in adjustment accuracy vs overflow limits.

Now, with the clocks_calc_mult_shift function, its much easier. However, not many clocksources have converted to using that function, and there is still the issue of the max interval length assumption being made by each clocksource driver independently.

So this patch simplifies the registration process by having clocksources be registered with a hz/khz value and the registration function taking care of setting mult/shift.

This should take most of the confusion out of writing a clocksource driver.

Additionally it also keeps the shift size tradeoff (more accuracy vs longer possible nohz times) centralized so the timekeeping core can keep track of the assumptions being made.

This patch series updates all ARM platforms clocksource registration to use the new clocksource_register_hz()/clocksource_register_khz() functions, simplifying the selection of the multiply/shift constants.