Skip to content

clocksource_register_khz/hz cleanups (for 2.6.38)

John Stultz lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10x86: Convert untested clocksources to clocksource_register_hz/khzarch/x86/kernel/apb_timer.c arch/x86/kernel/i8253.c arch/x86/kernel/kvmclock.c +4 more+8 -400 replies
2/10ia64: convert to clocksource_register_hz/khzarch/ia64/kernel/cyclone.c arch/ia64/kernel/time.c arch/ia64/sn/kernel/sn2/timer.c +1 more+5 -220 replies
3/10cris: convert to clocksource_register_khzarch/cris/arch-v32/kernel/time.c+1 -30 replies
4/10tile: convert to use clocksource_register_hzarch/tile/kernel/time.c+1 -45 replies
5/10parisc: convert to clocksource_register_hz/khzarch/parisc/kernel/time.c+1 -50 replies
6/10microblaze: convert to clocksource_register_hz/khzarch/microblaze/kernel/timer.c+1 -51 reply
7/10avr32: Convert to clocksource_register_hzarch/avr32/kernel/time.c+1 -40 replies
8/10blackfin: convert to clocksource_register_hzarch/blackfin/kernel/time-ts.c+2 -330 replies
9/10xtensa: convert to clocksource_register_hz/khzarch/xtensa/kernel/time.c+1 -120 replies
10/10sparc: convert to clocksource_register_hz/khzarch/sparc/kernel/time_64.c+1 -30 replies

Reviews trailers per patch

1 of 10 patches has a Reviewed-by or Acked-by.

PatchDavid S. MillerMichal Simek
1/10
2/10
3/10
4/10
5/10
6/10T-b
7/10
8/10
9/10
10/10A-b

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] clocksource_register_khz/hz cleanups (for 2.6.38)

clocksource_register_hz/khz() properly calculates a clocksource mult and shift value for a clocksource, removing much of the copy/pasted or arch-specific helper functions that do so.

The common x86 clocksources have been converted to use clocksource_register_hz/clocksource_register_khz and I've seen no related bug reports, so I think the infrastructure is fairly sound. So I wanted to start consolidating the other arches to also use the clocksource_register_hz/khz method.

I was a bit too late sending some of these patches out for the 2.6.37 cycle, so I wanted to send these out early for 2.6.38.

While all of these patches are untested, they are pretty straight forward, so please consider including these into your 2.6.38 queue for testing.

thanks
-john

CC Chris McDermott <[email protected]>
CC Chris Metcalf <[email protected]>
CC Chris Zankel <[email protected]>
CC "David S. Miller" <[email protected]>
CC Dimitri Sivanich <[email protected]>
CC Glauber Costa <[email protected]>
CC Hans-Christian Egtvedt <[email protected]>
CC Jeremy Fitzhardinge <[email protected]>
CC Jesper Nilsson <[email protected]>
CC Kyle McMartin <[email protected]>
CC Michal Simek <[email protected]>
CC Mikael Starvik <[email protected]>
CC Mike Frysinger <[email protected]>
CC Rusty Russell <[email protected]>
CC Thomas Gleixner <[email protected]>
CC Tony Luck <[email protected]>

John Stultz (10):
x86: Convert untested clocksources to clocksource_register_hz/khz
ia64: convert to clocksource_register_hz/khz
cris: convert to clocksource_register_khz
tile: convert to use clocksource_register_hz
parisc: convert to clocksource_register_hz/khz
microblaze: convert to clocksource_register_hz/khz
avr32: Convert to clocksource_register_hz
blackfin: convert to clocksource_register_hz
xtensa: convert to clocksource_register_hz/khz
sparc: convert to clocksource_register_hz/khz

 arch/avr32/kernel/time.c         |    5 +----
 arch/blackfin/kernel/time-ts.c   |   35 ++---------------------------------
 arch/cris/arch-v32/kernel/time.c |    4 +---
 arch/ia64/kernel/cyclone.c       |    6 +-----
 arch/ia64/kernel/time.c          |    9 ++-------
 arch/ia64/sn/kernel/sn2/timer.c  |    6 +-----
 arch/microblaze/kernel/timer.c   |    6 +-----
 arch/parisc/kernel/time.c        |    6 +-----
 arch/sparc/kernel/time_64.c      |    4 +---
 arch/tile/kernel/time.c          |    5 +----
 arch/x86/kernel/apb_timer.c      |   10 +---------
 arch/x86/kernel/i8253.c          |    6 +-----
 arch/x86/kernel/kvmclock.c       |    6 +-----
 arch/x86/lguest/boot.c           |    4 +---
 arch/x86/platform/uv/uv_time.c   |    6 +-----
 arch/x86/xen/time.c              |    6 +-----
 arch/xtensa/kernel/time.c        |   13 +------------
 drivers/char/hpet.c              |    6 +-----
 drivers/clocksource/cyclone.c    |   10 ++--------
 19 files changed, 22 insertions(+), 131 deletions(-)
Signature · 1 line
1.7.3.2.146.gca209