[patch] make pit clocksource continuous

From: Stas Sergeev
Date: Sat May 12 2007 - 19:16:24 EST


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@xxxxxxxx>
CC: Thomas Gleixner <tglx@xxxxxxxxxxxxx>

--- 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)