public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] make pit clocksource continuous
@ 2007-05-12 23:18 Stas Sergeev
  2007-05-12 23:38 ` Daniel Walker
  2007-05-13  7:16 ` Thomas Gleixner
  0 siblings, 2 replies; 11+ messages in thread
From: Stas Sergeev @ 2007-05-12 23:18 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Thomas Gleixner, Linux kernel

[-- Attachment #1: Type: text/plain, Size: 445 bytes --]

Hello.

Without the attached patch, I wasn't able
to get the PIT to work as a clocksource for
high-res timers.
I don't know whether the patch is correct,
but I tested it and it works.
Can someone please tell me what exactly
does this flag mean? google reveals nothing
sensible to me, sorry...

---
Set CLOCK_SOURCE_IS_CONTINUOUS flag for the PIT clocksource

Signed-off-by: Stas Sergeev <stsp@aknet.ru>
CC: Thomas Gleixner <tglx@linutronix.de>


[-- Attachment #2: pit_cont.diff --]
[-- Type: text/x-patch, Size: 331 bytes --]

--- linux-2.6.21/arch/i386/kernel/i8253.c	2007-05-12 11:29:23.000000000 +0400
+++ linux-2.6.21-xx/arch/i386/kernel/i8253.c	2007-05-13 02:19:57.000000000 +0400
@@ -193,6 +193,7 @@
 	.mask	= CLOCKSOURCE_MASK(32),
 	.mult	= 0,
 	.shift	= 20,
+	.flags  = CLOCK_SOURCE_IS_CONTINUOUS,
 };
 
 static int __init init_pit_clocksource(void)

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2007-05-13 18:14 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-12 23:18 [patch] make pit clocksource continuous Stas Sergeev
2007-05-12 23:38 ` Daniel Walker
2007-05-13  7:16 ` Thomas Gleixner
2007-05-13  9:04   ` Stas Sergeev
2007-05-13 14:54     ` Thomas Gleixner
2007-05-13 16:48       ` Stas Sergeev
2007-05-13 16:50         ` Thomas Gleixner
2007-05-13 17:23           ` Stas Sergeev
2007-05-13 17:36             ` Thomas Gleixner
2007-05-13 17:55               ` Matthieu CASTET
2007-05-13 18:17               ` Stas Sergeev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox