From: Kevin Hilman <khilman@mvista.com>
To: Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@elte.hu>
Cc: linux-omap-open-source@linux.omap.com,
linux-arm-kernel@lists.arm.linux.org.uk
Subject: [patch 2.6.20-rc6-rt6 4/6] ARM: LEDS_TIMER hackery for clockevents
Date: Wed, 31 Jan 2007 16:13:04 -0800 [thread overview]
Message-ID: <20070201001316.991832000@mvista.com> (raw)
In-Reply-To: 20070201001300.820659000@mvista.com
[-- Attachment #1: arm-leds-timer.patch --]
[-- Type: text/plain, Size: 999 bytes --]
The clockevent layer now handles everything done by the ARM
timer_tick() call, except the LED stuff. Here we add an
arch_tick_leds() to handle LED toggling which is called by
do_timer().
Index: linux-2.6/arch/arm/kernel/time.c
===================================================================
--- linux-2.6.orig/arch/arm/kernel/time.c
+++ linux-2.6/arch/arm/kernel/time.c
@@ -244,6 +244,13 @@ static inline void do_leds(void)
#define do_leds()
#endif
+void arch_tick_leds(void)
+{
+#ifdef CONFIG_LEDS_TIMER
+ do_leds();
+#endif
+}
+
#ifndef CONFIG_GENERIC_TIME
void do_gettimeofday(struct timeval *tv)
{
Index: linux-2.6/kernel/timer.c
===================================================================
--- linux-2.6.orig/kernel/timer.c
+++ linux-2.6/kernel/timer.c
@@ -1471,6 +1471,9 @@ static void run_timer_softirq(struct sof
void do_timer(unsigned long ticks)
{
jiffies_64 += ticks;
+#ifdef CONFIG_LEDS_TIMER
+ arch_tick_leds();
+#endif
}
#ifdef __ARCH_WANT_SYS_ALARM
--
next prev parent reply other threads:[~2007-02-01 0:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-01 0:13 [patch 2.6.20-rc6-rt6 0/6] ARM clockevent patches Kevin Hilman
2007-02-01 0:13 ` [patch 2.6.20-rc6-rt6 1/6] ARM build fixups Kevin Hilman
2007-02-01 0:13 ` [patch 2.6.20-rc6-rt6 2/6] ARM NO_HZ idle loop fixup Kevin Hilman
2007-02-01 0:13 ` [patch 2.6.20-rc6-rt6 3/6] ARM Kconfig support for GENERIC_CLOCKEVENTS Kevin Hilman
2007-02-01 0:13 ` Kevin Hilman [this message]
2007-02-01 0:13 ` [patch 2.6.20-rc6-rt6 5/6] ARM: clockevent support for ixp4xx platform Kevin Hilman
2007-02-01 0:13 ` [patch 2.6.20-rc6-rt6 6/6] ARM: clockevent support for OMAP1 platform Kevin Hilman
2007-02-01 8:29 ` [patch 2.6.20-rc6-rt6 0/6] ARM clockevent patches Ingo Molnar
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=20070201001316.991832000@mvista.com \
--to=khilman@mvista.com \
--cc=linux-arm-kernel@lists.arm.linux.org.uk \
--cc=linux-omap-open-source@linux.omap.com \
--cc=mingo@elte.hu \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox