From: robherring2@gmail.com (Rob Herring)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/3] ARM: arch_timer: use the 64-bit sched_clock setup
Date: Mon, 11 Mar 2013 21:26:37 -0500 [thread overview]
Message-ID: <1363055197-17296-4-git-send-email-robherring2@gmail.com> (raw)
In-Reply-To: <1363055197-17296-1-git-send-email-robherring2@gmail.com>
From: Rob Herring <rob.herring@calxeda.com>
Now that the ARM sched_clock code can support using 64-bit counters, call
setup_sched_clock_64 instead.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
---
arch/arm/kernel/arch_timer.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/arch/arm/kernel/arch_timer.c b/arch/arm/kernel/arch_timer.c
index d957a51..d813ae6 100644
--- a/arch/arm/kernel/arch_timer.c
+++ b/arch/arm/kernel/arch_timer.c
@@ -22,11 +22,6 @@ static unsigned long arch_timer_read_counter_long(void)
return arch_timer_read_counter();
}
-static u32 arch_timer_read_counter_u32(void)
-{
- return arch_timer_read_counter();
-}
-
static struct delay_timer arch_delay_timer;
static void __init arch_timer_delay_timer_register(void)
@@ -55,7 +50,6 @@ int __init arch_timer_sched_clock_init(void)
if (arch_timer_get_rate() == 0)
return -ENXIO;
- setup_sched_clock(arch_timer_read_counter_u32,
- 32, arch_timer_get_rate());
+ setup_sched_clock_64(arch_timer_read_counter, arch_timer_get_rate());
return 0;
}
--
1.7.10.4
next prev parent reply other threads:[~2013-03-12 2:26 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-12 2:26 [PATCH 0/3] ARM sched_clock selection enhancements Rob Herring
2013-03-12 2:26 ` [PATCH 1/3] ARM: sched_clock: allow changing to higher frequency counter Rob Herring
2013-03-12 2:26 ` [PATCH 2/3] ARM: sched_clock: support 64-bit counters Rob Herring
2013-03-21 14:02 ` Christopher Covington
2013-03-21 22:15 ` Rob Herring
2013-03-22 12:03 ` Christopher Covington
2013-03-22 12:58 ` Rob Herring
2013-03-22 15:20 ` Russell King - ARM Linux
2013-03-22 11:09 ` Russell King - ARM Linux
2013-03-12 2:26 ` Rob Herring [this message]
2013-03-12 9:23 ` [PATCH 0/3] ARM sched_clock selection enhancements Russell King - ARM Linux
2013-03-12 12:43 ` Rob Herring
2013-03-20 23:03 ` Rob Herring
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=1363055197-17296-4-git-send-email-robherring2@gmail.com \
--to=robherring2@gmail.com \
--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).