From: tip-bot for Stephen Boyd <tipbot@zytor.com>
To: linux-tip-commits@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, hpa@zytor.com, mingo@kernel.org,
tglx@linutronix.de, maxime.ripard@free-electrons.com,
daniel.lezcano@linaro.org, sboyd@codeaurora.org
Subject: [tip:timers/core] clocksource: Timer-sun5i: Switch to sched_clock_register()
Date: Sun, 19 Jan 2014 04:27:25 -0800 [thread overview]
Message-ID: <tip-00e2bcd6d35f59fce7fa0e76e24d08f74c6a8506@git.kernel.org> (raw)
In-Reply-To: <1389922686-6249-1-git-send-email-sboyd@codeaurora.org>
Commit-ID: 00e2bcd6d35f59fce7fa0e76e24d08f74c6a8506
Gitweb: http://git.kernel.org/tip/00e2bcd6d35f59fce7fa0e76e24d08f74c6a8506
Author: Stephen Boyd <sboyd@codeaurora.org>
AuthorDate: Thu, 16 Jan 2014 17:38:06 -0800
Committer: Ingo Molnar <mingo@kernel.org>
CommitDate: Sun, 19 Jan 2014 13:23:23 +0100
clocksource: Timer-sun5i: Switch to sched_clock_register()
The 32-bit sched_clock() interface supports 64 bits since
3.13-rc1. Upgrade to the 64-bit function to allow us to remove
the 32-bit registration interface.
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
Cc: linux-arm-kernel@lists.infradead.org
Link: http://lkml.kernel.org/r/1389922686-6249-1-git-send-email-sboyd@codeaurora.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
drivers/clocksource/timer-sun5i.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/clocksource/timer-sun5i.c b/drivers/clocksource/timer-sun5i.c
index bddc522..deebcd6 100644
--- a/drivers/clocksource/timer-sun5i.c
+++ b/drivers/clocksource/timer-sun5i.c
@@ -136,7 +136,7 @@ static struct irqaction sun5i_timer_irq = {
.dev_id = &sun5i_clockevent,
};
-static u32 sun5i_timer_sched_read(void)
+static u64 sun5i_timer_sched_read(void)
{
return ~readl(timer_base + TIMER_CNTVAL_LO_REG(1));
}
@@ -166,7 +166,7 @@ static void __init sun5i_timer_init(struct device_node *node)
writel(TIMER_CTL_ENABLE | TIMER_CTL_RELOAD,
timer_base + TIMER_CTL_REG(1));
- setup_sched_clock(sun5i_timer_sched_read, 32, rate);
+ sched_clock_register(sun5i_timer_sched_read, 32, rate);
clocksource_mmio_init(timer_base + TIMER_CNTVAL_LO_REG(1), node->name,
rate, 340, 32, clocksource_mmio_readl_down);
prev parent reply other threads:[~2014-01-19 12:27 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-17 1:38 [PATCH] clocksource: timer-sun5i: Switch to sched_clock_register() Stephen Boyd
2014-01-17 1:38 ` Stephen Boyd
2014-01-17 10:05 ` Daniel Lezcano
2014-01-17 10:05 ` Daniel Lezcano
2014-01-17 17:56 ` Stephen Boyd
2014-01-17 17:56 ` Stephen Boyd
2014-01-17 18:04 ` Daniel Lezcano
2014-01-17 18:04 ` Daniel Lezcano
2014-01-19 12:22 ` Ingo Molnar
2014-01-19 12:22 ` Ingo Molnar
2014-01-19 12:27 ` tip-bot for Stephen Boyd [this message]
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=tip-00e2bcd6d35f59fce7fa0e76e24d08f74c6a8506@git.kernel.org \
--to=tipbot@zytor.com \
--cc=daniel.lezcano@linaro.org \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=maxime.ripard@free-electrons.com \
--cc=mingo@kernel.org \
--cc=sboyd@codeaurora.org \
--cc=tglx@linutronix.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.