linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 24/40] ARM: realview/versatile: update clock source registration
Date: Fri, 17 Dec 2010 11:46:31 +0000	[thread overview]
Message-ID: <E1PTYlb-0006jC-AX@rmk-PC.arm.linux.org.uk> (raw)
In-Reply-To: 20101217113223.GC9937@n2100.arm.linux.org.uk

In d7e81c2 (clocksource: Add clocksource_register_hz/khz interface) new
interfaces were added which simplify (and optimize) the selection of the
divisor shift/mult constants.  Switch over to using this new interface.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
---
 arch/arm/plat-versatile/timer-sp.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/arch/arm/plat-versatile/timer-sp.c b/arch/arm/plat-versatile/timer-sp.c
index fb0d1c2..f09941b 100644
--- a/arch/arm/plat-versatile/timer-sp.c
+++ b/arch/arm/plat-versatile/timer-sp.c
@@ -46,7 +46,6 @@ static struct clocksource clocksource_sp804 = {
 	.rating		= 200,
 	.read		= sp804_read,
 	.mask		= CLOCKSOURCE_MASK(32),
-	.shift		= 20,
 	.flags		= CLOCK_SOURCE_IS_CONTINUOUS,
 };
 
@@ -63,8 +62,7 @@ void __init sp804_clocksource_init(void __iomem *base)
 	writel(TIMER_CTRL_32BIT | TIMER_CTRL_ENABLE | TIMER_CTRL_PERIODIC,
 		clksrc_base + TIMER_CTRL);
 
-	cs->mult = clocksource_khz2mult(TIMER_FREQ_KHZ, cs->shift);
-	clocksource_register(cs);
+	clocksource_register_khz(cs, TIMER_FREQ_KHZ);
 }
 
 
-- 
1.6.2.5

  parent reply	other threads:[~2010-12-17 11:46 UTC|newest]

Thread overview: 77+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-17 11:32 [PATCH 0/40] Complete set of clocksource/sched_clock patches Russell King - ARM Linux
2010-12-17 11:35 ` [PATCH 01/40] ARM: AT91: update clock source registration Russell King - ARM Linux
2010-12-17 13:01   ` Jean-Christophe PLAGNIOL-VILLARD
2010-12-17 11:35 ` [PATCH 02/40] ARM: bcmring: " Russell King - ARM Linux
2010-12-17 11:36 ` [PATCH 03/40] ARM: davinci: " Russell King - ARM Linux
2010-12-21 19:23   ` Kevin Hilman
2010-12-17 11:36 ` [PATCH 04/40] ARM: integrator: " Russell King - ARM Linux
2010-12-17 11:37 ` [PATCH 05/40] ARM: ixp4xx: " Russell King - ARM Linux
2010-12-17 11:37 ` [PATCH 06/40] ARM: lpc32xx: " Russell King - ARM Linux
2010-12-17 11:37 ` [PATCH 07/40] ARM: mmp: " Russell King - ARM Linux
2010-12-17 11:38 ` [PATCH 08/40] ARM: MSM: " Russell King - ARM Linux
2010-12-17 21:23   ` David Brown
2010-12-17 11:38 ` [PATCH 09/40] ARM: netx: " Russell King - ARM Linux
2010-12-17 11:38 ` [PATCH 10/40] ARM: ns9xxx: " Russell King - ARM Linux
2010-12-17 11:39 ` [PATCH 11/40] ARM: omap: " Russell King - ARM Linux
2010-12-17 11:39 ` [PATCH 12/40] ARM: PXA: " Russell King - ARM Linux
2010-12-17 11:39 ` [PATCH 13/40] ARM: s5pv310: " Russell King - ARM Linux
2010-12-17 11:40 ` [PATCH 14/40] ARM: SA11x0: " Russell King - ARM Linux
2010-12-17 11:40 ` [PATCH 15/40] ARM: tcc8k: " Russell King - ARM Linux
2010-12-17 11:40 ` [PATCH 16/40] ARM: U300: " Russell King - ARM Linux
2010-12-17 11:41 ` [PATCH 17/40] ARM: nuc: " Russell King - ARM Linux
2010-12-17 13:21   ` Wan ZongShun
2010-12-17 11:41 ` [PATCH 18/40] ARM: iop: " Russell King - ARM Linux
2010-12-17 11:41 ` [PATCH 19/40] ARM: mxc: " Russell King - ARM Linux
2010-12-17 11:44 ` [PATCH 20/40] ARM: nomadik: " Russell King - ARM Linux
2010-12-17 11:44 ` [PATCH 21/40] ARM: spear: " Russell King - ARM Linux
2010-12-17 11:45 ` [PATCH 22/40] ARM: orion: " Russell King - ARM Linux
2010-12-17 11:46 ` [PATCH 23/40] ARM: stmp: " Russell King - ARM Linux
2010-12-17 11:46 ` Russell King - ARM Linux [this message]
2010-12-17 11:46 ` [PATCH 25/40] ARM: tegra: timer: Separate clocksource and sched_clock Russell King - ARM Linux
2010-12-17 11:47 ` [PATCH 26/40] ARM: ensure all sched_clock() implementations are notrace marked Russell King - ARM Linux
2010-12-17 11:47 ` [PATCH 27/40] Fix rounding in clocks_calc_mult_shift() Russell King - ARM Linux
2010-12-17 11:47 ` [PATCH 28/40] ARM: sched_clock: provide common infrastructure for sched_clock() Russell King - ARM Linux
2010-12-17 18:51   ` Nicolas Pitre
2010-12-17 19:05     ` Russell King - ARM Linux
2010-12-17 19:18       ` Russell King - ARM Linux
2010-12-17 19:34         ` Nicolas Pitre
2010-12-17 19:37         ` Nicolas Pitre
2010-12-17 19:40           ` Russell King - ARM Linux
2010-12-17 19:59             ` Nicolas Pitre
2010-12-17 11:48 ` [PATCH 29/40] ARM: ixp4xx: convert sched_clock() to use new infrastructure Russell King - ARM Linux
2010-12-17 11:48 ` [PATCH 30/40] ARM: mmp: " Russell King - ARM Linux
2010-12-17 11:48 ` [PATCH 31/40] ARM: pxa: " Russell King - ARM Linux
2010-12-17 11:49 ` [PATCH 32/40] ARM: sa1100: " Russell King - ARM Linux
2010-12-17 11:49 ` [PATCH 33/40] ARM: tegra: " Russell King - ARM Linux
2010-12-22  7:23   ` Olof Johansson
2010-12-22 23:06     ` Russell King - ARM Linux
2010-12-17 11:49 ` [PATCH 34/40] ARM: u300: " Russell King - ARM Linux
2010-12-19 22:26   ` Linus Walleij
2010-12-17 11:50 ` [PATCH 35/40] ARM: iop: " Russell King - ARM Linux
2010-12-19 10:56   ` Russell King - ARM Linux
2010-12-17 11:50 ` [PATCH 36/40] ARM: nomadik: " Russell King - ARM Linux
2010-12-19 22:25   ` Linus Walleij
2010-12-17 11:50 ` [PATCH 37/40] ARM: omap: " Russell King - ARM Linux
2010-12-17 11:51 ` [PATCH 38/40] ARM: orion: " Russell King - ARM Linux
2010-12-17 19:49   ` Nicolas Pitre
2010-12-17 11:51 ` [PATCH 39/40] ARM: versatile: " Russell King - ARM Linux
2010-12-17 11:51 ` [PATCH 40/40] ARM: vexpress: add sched_clock() for Versatile Express Russell King - ARM Linux
2010-12-17 14:04 ` [PATCH 0/40] Complete set of clocksource/sched_clock patches Santosh Shilimkar
2010-12-17 16:03 ` Will Deacon
2010-12-19 10:37 ` Mikael Pettersson
2010-12-19 10:52   ` Russell King - ARM Linux
2010-12-19 10:56     ` Russell King - ARM Linux
2010-12-19 12:16       ` Mikael Pettersson
2010-12-19 12:33     ` Mikael Pettersson
2010-12-19 12:55       ` Russell King - ARM Linux
2010-12-19 14:05         ` Mikael Pettersson
2010-12-19 14:49           ` Russell King - ARM Linux
2010-12-19 16:15             ` Mikael Pettersson
2010-12-20  3:32 ` Eric Miao
2010-12-20 22:48   ` Russell King - ARM Linux
2010-12-21 19:24 ` Kevin Hilman
2010-12-22  7:24 ` Olof Johansson
2010-12-22 10:59 ` Jamie Iles
2010-12-22 21:59 ` JD (Jiandong) Zheng
2011-01-08  9:05 ` Wan ZongShun
2011-01-08  9:23   ` Russell King - ARM Linux

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1PTYlb-0006jC-AX@rmk-PC.arm.linux.org.uk \
    --to=linux@arm.linux.org.uk \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).