From: Kevin Hilman <khilman@deeprooted.net>
To: Ingo Molnar <mingo@elte.hu>
Cc: linux-kernel@vger.kernel.org,
Thomas Gleixner <tglx@linutronix.de>,
John Stultz <johnstul@us.ibm.com>,
Deepak Saxena <dsaxena@plexity.net>
Subject: Re: 2.6.17-rc6-rt1
Date: Thu, 08 Jun 2006 11:27:09 -0700 [thread overview]
Message-ID: <1149791229.6348.19.camel@vence.internal.net> (raw)
In-Reply-To: <20060607211455.GA6132@elte.hu>
[-- Attachment #1: Type: text/plain, Size: 530 bytes --]
On Wed, 2006-06-07 at 23:14 +0200, Ingo Molnar wrote:
> i have released the 2.6.17-rc6-rt1 tree, which can be downloaded from
> the usual place:
>
> http://redhat.com/~mingo/realtime-preempt/
Here's a couple of fixes/updates:
1) Fix for arm-generic-timeofday.patch which doesn't compile against
2.6.17-rc6
2) Add clocksource for arch/arm/mach-ixp4xx
Also, I notice both asm-arm/timeofday.h and asm-ia64/timeofday.h simply
include asm-generic/timeofday.h which doesn't exist. Should the former
be removed also?
Kevin
[-- Attachment #2: arm-generic-timeofday-fixups.patch --]
[-- Type: text/x-patch, Size: 362 bytes --]
Index: ixp4xx/arch/arm/kernel/time.c
===================================================================
--- ixp4xx.orig/arch/arm/kernel/time.c
+++ ixp4xx/arch/arm/kernel/time.c
@@ -28,7 +28,6 @@
#include <linux/profile.h>
#include <linux/sysdev.h>
#include <linux/timer.h>
-#include <linux/timeofday.h>
#include <asm/leds.h>
#include <asm/thread_info.h>
[-- Attachment #3: arm-ixp4xx-clocksource.patch --]
[-- Type: text/x-patch, Size: 2218 bytes --]
Add a clocksource driver for the Intel IXP4xx platform allowing it to
use the generic time-of-day code.
Signed-off-by: Kevin Hilman <khilman@deeprooted.net>
Index: ixp4xx/arch/arm/mach-ixp4xx/common.c
===================================================================
--- ixp4xx.orig/arch/arm/mach-ixp4xx/common.c
+++ ixp4xx/arch/arm/mach-ixp4xx/common.c
@@ -27,6 +27,7 @@
#include <linux/bitops.h>
#include <linux/time.h>
#include <linux/timex.h>
+#include <linux/clocksource.h>
#include <asm/hardware.h>
#include <asm/uaccess.h>
@@ -256,16 +257,6 @@ static unsigned volatile last_jiffy_time
#define CLOCK_TICKS_PER_USEC ((CLOCK_TICK_RATE + USEC_PER_SEC/2) / USEC_PER_SEC)
-/* IRQs are disabled before entering here from do_gettimeofday() */
-static unsigned long ixp4xx_gettimeoffset(void)
-{
- u32 elapsed;
-
- elapsed = *IXP4XX_OSTS - last_jiffy_time;
-
- return elapsed / CLOCK_TICKS_PER_USEC;
-}
-
static irqreturn_t ixp4xx_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
{
write_seqlock(&xtime_lock);
@@ -300,8 +291,6 @@ static void __init ixp4xx_timer_init(voi
/* Setup the Timer counter value */
*IXP4XX_OSRT1 = (LATCH & ~IXP4XX_OST_RELOAD_MASK) | IXP4XX_OST_ENABLE;
- /* Reset time-stamp counter */
- *IXP4XX_OSTS = 0;
last_jiffy_time = 0;
/* Connect the interrupt handler and enable the interrupt */
@@ -310,7 +299,6 @@ static void __init ixp4xx_timer_init(voi
struct sys_timer ixp4xx_timer = {
.init = ixp4xx_timer_init,
- .offset = ixp4xx_gettimeoffset,
};
static struct resource ixp46x_i2c_resources[] = {
@@ -366,3 +354,30 @@ void __init ixp4xx_sys_init(void)
ixp4xx_exp_bus_size >> 20);
}
+cycle_t ixp4xx_get_cycles(void)
+{
+ return *IXP4XX_OSTS;
+}
+
+static struct clocksource clocksource_ixp4xx = {
+ .name = "OSTS",
+ .rating = 200,
+ .read = ixp4xx_get_cycles,
+ .mask = 0xFFFFFFFF,
+ .shift = 10,
+ .is_continuous = 1,
+};
+
+static int __init ixp4xx_clocksource_init(void)
+{
+ /* Reset time-stamp counter */
+ *IXP4XX_OSTS = 0;
+
+ clocksource_ixp4xx.mult =
+ clocksource_khz2mult(66660, clocksource_ixp4xx.shift);
+ clocksource_register(&clocksource_ixp4xx);
+
+ return 0;
+}
+
+device_initcall(ixp4xx_clocksource_init);
next prev parent reply other threads:[~2006-06-08 18:27 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-07 21:14 2.6.17-rc6-rt1 Ingo Molnar
2006-06-08 2:09 ` 2.6.17-rc6-rt1 Daniel Walker
2006-06-08 3:49 ` 2.6.17-rc6-rt1 Mark Knecht
2006-06-08 20:12 ` 2.6.17-rc6-rt1 Mark Knecht
2006-06-08 6:42 ` [PATCH -rt] Trivial compiler warning fix Jan Altenberg
2006-06-08 8:51 ` 2.6.17-rc6-rt1 Mike Galbraith
2006-06-08 19:52 ` 2.6.17-rc6-rt1 john stultz
2006-06-08 20:01 ` 2.6.17-rc6-rt1 Thomas Gleixner
2006-06-08 10:28 ` 2.6.17-rc6-rt1 Michal Piotrowski
2006-06-08 12:23 ` 2.6.17-rc6-rt1 Michal Piotrowski
2006-06-08 11:28 ` 2.6.17-rc6-rt1 Michal Piotrowski
2006-06-08 18:27 ` Kevin Hilman [this message]
2006-06-08 19:03 ` 2.6.17-rc6-rt1 Thomas Gleixner
2006-06-08 23:57 ` 2.6.17-rc6-rt1 john stultz
2006-06-09 7:28 ` 2.6.17-rc6-rt1 Thomas Gleixner
2006-06-09 8:42 ` 2.6.17-rc6-rt1 Mike Galbraith
2006-06-09 10:12 ` 2.6.17-rc6-rt1 Sébastien Dugué
2006-06-09 11:35 ` 2.6.17-rc6-rt1 Mike Galbraith
2006-06-09 11:44 ` 2.6.17-rc6-rt1 Sébastien Dugué
2006-06-09 12:20 ` 2.6.17-rc6-rt1 Mike Galbraith
2006-06-09 12:57 ` 2.6.17-rc6-rt1 Sébastien Dugué
2006-06-09 13:11 ` 2.6.17-rc6-rt1 Thomas Gleixner
2006-06-09 13:42 ` 2.6.17-rc6-rt1 Mike Galbraith
2006-06-09 14:31 ` 2.6.17-rc6-rt1 Thomas Gleixner
2006-06-09 15:55 ` 2.6.17-rc6-rt1 Daniel Walker
2006-06-09 18:41 ` 2.6.17-rc6-rt1 Mike Galbraith
2006-06-09 19:09 ` 2.6.17-rc6-rt1 Thomas Gleixner
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=1149791229.6348.19.camel@vence.internal.net \
--to=khilman@deeprooted.net \
--cc=dsaxena@plexity.net \
--cc=johnstul@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--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