Skip to content

clocksource_register_khz/hz cleanups(for 2.6.37?)

John Stultz lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7x86: Convert remaining clocksources to clocksource_register_hz/khzarch/x86/kernel/apb_timer.c arch/x86/kernel/i8253.c arch/x86/kernel/kvmclock.c +5 more+9 -482 replies
2/7sh: convert to clocksource_register_hzdrivers/clocksource/sh_cmt.c drivers/clocksource/sh_tmu.c+13 -130 replies
3/7ia64: 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
4/7sparc: convert to clocksource_register_hz/khzarch/sparc/kernel/time_64.c+1 -31 reply
5/7avr32: Convert to clocksource_register_hzarch/avr32/kernel/time.c+1 -40 replies
6/7mips: convert to clocksource_register_hz/khzarch/mips/alchemy/common/time.c arch/mips/cavium-octeon/csrc-octeon.c arch/mips/include/asm/time.h +10 more+14 -660 replies
7/7blackfin: convert to clocksource_register_hzarch/blackfin/kernel/time-ts.c+2 -330 replies

Reviews trailers per patch

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

PatchDavid S. Miller
1/7
2/7
3/7
4/7A-b
5/7
6/7
7/7

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

So the common x86 clocksources have switched over to using clocksource_register_khz/hz() and so far I've seen no bug reports, so I wanted to post the conversion for a few more architectures so they can be queued up for 2.6.37 (or later if the maintainer feels more testing would be good).

These changes greatly simplify clocksource registration, removing much of the copy/paste voodoo surrounding how to calculate good mult and shift values for clocksources.

While the patch set is numbered here, the patches are not dependent on each other. So each maintainer can make an independent call on merging for 2.6.37.

The conversion is fairly straight forward. However, I have not been able to test these, so I'd appreciate any testing or feedback. Any assistance from the maintainers in getting these into their trees would also be greatly appreciated.

thanks
-john

CC Glauber Costa <[email protected]>
CC Dimitri Sivanich <[email protected]>
CC Alok N Kataria <[email protected]>
CC Rusty Russell <[email protected]>
CC Jeremy Fitzhardinge <[email protected]>
CC Chris McDermott <[email protected]>
CC Thomas Gleixner <[email protected]>
CC Magnus Damm <[email protected]>
CC Paul Mundt <[email protected]>
CC Tony Luck <[email protected]>
CC "David S. Miller" <[email protected]>
CC Haavard Skinnemoen <[email protected]>
CC Ralf Baechle <[email protected]>
CC Mike Frysinger <[email protected]>

John Stultz (7):
x86: Convert remaining clocksources to clocksource_register_hz/khz
sh: convert to clocksource_register_hz
ia64: convert to clocksource_register_hz/khz
sparc: convert to clocksource_register_hz/khz
avr32: Convert to clocksource_register_hz
mips: convert to clocksource_register_hz/khz
blackfin: convert to clocksource_register_hz

 arch/avr32/kernel/time.c                        |    5 +--
 arch/blackfin/kernel/time-ts.c                  |   35 +---------------------
 arch/ia64/kernel/cyclone.c                      |    6 +---
 arch/ia64/kernel/time.c                         |    9 +----
 arch/ia64/sn/kernel/sn2/timer.c                 |    6 +---
 arch/mips/alchemy/common/time.c                 |    3 +-
 arch/mips/cavium-octeon/csrc-octeon.c           |    3 +-
 arch/mips/include/asm/time.h                    |    6 ----
 arch/mips/jz4740/time.c                         |    3 +-
 arch/mips/kernel/cevt-txx9.c                    |    3 +-
 arch/mips/kernel/csrc-bcm1480.c                 |    3 +-
 arch/mips/kernel/csrc-ioasic.c                  |    4 +--
 arch/mips/kernel/csrc-powertv.c                 |   35 ++---------------------
 arch/mips/kernel/csrc-r4k.c                     |    4 +--
 arch/mips/kernel/csrc-sb1250.c                  |    3 +-
 arch/mips/kernel/i8253.c                        |    5 +--
 arch/mips/loongson/common/cs5536/cs5536_mfgpt.c |    5 +--
 arch/mips/sgi-ip27/ip27-timer.c                 |    3 +-
 arch/sparc/kernel/time_64.c                     |    4 +--
 arch/x86/kernel/apb_timer.c                     |   10 +------
 arch/x86/kernel/i8253.c                         |    6 +---
 arch/x86/kernel/kvmclock.c                      |    6 +---
 arch/x86/kernel/uv_time.c                       |    6 +---
 arch/x86/kernel/vmiclock_32.c                   |    9 +-----
 arch/x86/lguest/boot.c                          |    4 +--
 arch/x86/xen/time.c                             |    6 +---
 drivers/char/hpet.c                             |    6 +---
 drivers/clocksource/cyclone.c                   |   10 +-----
 drivers/clocksource/sh_cmt.c                    |   14 ++++----
 drivers/clocksource/sh_tmu.c                    |   12 ++++----
 30 files changed, 45 insertions(+), 189 deletions(-)