lkml.org 
[lkml]   [2007]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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-13 01:19    [W:0.100 / U:1.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site