From: marc.zyngier@arm.com (Marc Zyngier)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC PATCH 20/20] ARM: simplify percpu_timer_ack
Date: Wed, 2 Mar 2011 16:53:26 +0000 [thread overview]
Message-ID: <1299084806-16546-21-git-send-email-marc.zyngier@arm.com> (raw)
In-Reply-To: <1299084806-16546-1-git-send-email-marc.zyngier@arm.com>
There is no provider of local_timer_ack anymore after the conversion
of msm to the percpu_timer interface. Remove the weak local_timer_ack
symbol and directly call percpu_timer_ack.
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
---
arch/arm/kernel/percpu_timer.c | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
diff --git a/arch/arm/kernel/percpu_timer.c b/arch/arm/kernel/percpu_timer.c
index 85af863..6e1942b 100644
--- a/arch/arm/kernel/percpu_timer.c
+++ b/arch/arm/kernel/percpu_timer.c
@@ -60,24 +60,18 @@ void percpu_timer_register(struct local_timer_ops *ops)
*
* If a local timer interrupt has occurred, acknowledge and return 1.
* Otherwise, return 0.
- *
- * This can be overloaded by platform code that doesn't provide its
- * timer in timer_fns way (msm at the moment). Once all platforms have
- * migrated, the weak alias can be removed.
*/
static int percpu_timer_ack(void)
{
return timer_ops->ack();
}
-int local_timer_ack(void) __attribute__ ((weak, alias("percpu_timer_ack")));
-
asmlinkage void __exception_irq_entry do_local_timer(struct pt_regs *regs)
{
struct pt_regs *old_regs = set_irq_regs(regs);
int cpu = smp_processor_id();
- if (local_timer_ack()) {
+ if (percpu_timer_ack()) {
__inc_irq_stat(cpu, local_timer_irqs);
percpu_timer_run();
}
--
1.7.0.4
prev parent reply other threads:[~2011-03-02 16:53 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-02 16:53 [RFC PATCH 00/20] A15 architected timer support Marc Zyngier
2011-03-02 16:53 ` [RFC PATCH 01/20] ARM: architected timers: move local timer support to percpu_timer.c Marc Zyngier
2011-03-02 16:53 ` [RFC PATCH 02/20] ARM: omap2: remove stubbed twd_timer_setup call Marc Zyngier
2011-03-02 16:53 ` [RFC PATCH 03/20] ARM: exynos4: " Marc Zyngier
2011-03-02 16:53 ` [RFC PATCH 04/20] ARM: shmobile: " Marc Zyngier
2011-03-02 16:53 ` [RFC PATCH 05/20] ARM: tegra: " Marc Zyngier
2011-03-02 16:53 ` [RFC PATCH 06/20] ARM: ux500: " Marc Zyngier
2011-03-02 16:53 ` [RFC PATCH 07/20] ARM: versatile: " Marc Zyngier
2011-03-02 16:53 ` [RFC PATCH 08/20] ARM: remove unused twd_timer_setup stub Marc Zyngier
2011-03-02 16:53 ` [RFC PATCH 09/20] ARM: architected timers: add A15 architected timers Marc Zyngier
2011-03-02 16:53 ` [RFC PATCH 10/20] ARM: Platform dependent sched_clock() override Marc Zyngier
2011-03-02 16:53 ` [RFC PATCH 11/20] ARM: architected timers: Add A15 specific sched_clock implementation Marc Zyngier
2011-03-02 16:53 ` [RFC PATCH 12/20] ARM: versatile/vexpress: rework timer support Marc Zyngier
2011-03-02 16:53 ` [RFC PATCH 13/20] ARM: msm: dynamically register local timer setup function Marc Zyngier
2011-03-02 20:32 ` David Brown
2011-03-03 9:17 ` Marc Zyngier
2011-03-03 22:56 ` David Brown
2011-03-04 11:09 ` Marc Zyngier
2011-03-04 17:03 ` David Brown
2011-03-04 17:05 ` Marc Zyngier
2011-03-04 17:11 ` David Brown
2011-03-04 17:13 ` Marc Zyngier
2011-03-02 16:53 ` [RFC PATCH 14/20] ARM: omap4: " Marc Zyngier
2011-03-02 16:53 ` [RFC PATCH 15/20] ARM: exynos4: " Marc Zyngier
2011-03-02 16:53 ` [RFC PATCH 16/20] ARM: shmobile: " Marc Zyngier
2011-03-02 16:53 ` [RFC PATCH 17/20] ARM: tegra: " Marc Zyngier
2011-03-02 16:53 ` [RFC PATCH 18/20] ARM: ux500: " Marc Zyngier
2011-03-02 16:53 ` [RFC PATCH 19/20] ARM: simplify percpu_timer_setup Marc Zyngier
2011-03-02 16:53 ` Marc Zyngier [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=1299084806-16546-21-git-send-email-marc.zyngier@arm.com \
--to=marc.zyngier@arm.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).