lkml.org 
[lkml]   [2007]   [May]   [12]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateSun, 13 May 2007 03:18:52 +0400
FromStas Sergeev <>
Subject[patch] make pit clocksource continuous
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>

--- 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)
\
 
 \ /
  Last update: 2007-05-12 23:19    [from the cache]
©2003-2008