Re: [patch] make pit clocksource continuous

2007-05-13 Thread Stas Sergeev
Hello. Thomas Gleixner wrote: Does this mean that on even an older boards (without acpi at all) the hrtimers won't work? Not if PIT is the only clocksource available. I was confused as to where the above "not" applies. It does _NOT_ work without pm_timer or hpet Thanks, now its clear enough

Re: [patch] make pit clocksource continuous

2007-05-13 Thread Matthieu CASTET
Hi, On Sun, 13 May 2007 19:36:12 +0200, Thomas Gleixner wrote: > On Sun, 2007-05-13 at 21:23 +0400, Stas Sergeev wrote: >> Hello. >> >> Thomas Gleixner wrote: >> >> Does this mean that on even an older >> >> boards (without acpi at all) the hrtimers won't work? >> > Not if PIT is the only clocks

Re: [patch] make pit clocksource continuous

2007-05-13 Thread Thomas Gleixner
On Sun, 2007-05-13 at 21:23 +0400, Stas Sergeev wrote: > Hello. > > Thomas Gleixner wrote: > >> Does this mean that on even an older > >> boards (without acpi at all) the hrtimers > >> won't work? > > Not if PIT is the only clocksource available. > So you mean it can work without both the > pm_tim

Re: [patch] make pit clocksource continuous

2007-05-13 Thread Stas Sergeev
Hello. Thomas Gleixner wrote: Does this mean that on even an older boards (without acpi at all) the hrtimers won't work? Not if PIT is the only clocksource available. So you mean it can work without both the pm_timer and hpet? Sorry for bothering you too much, but I am trying to use the hrtime

Re: [patch] make pit clocksource continuous

2007-05-13 Thread Stas Sergeev
Hello. Thomas Gleixner wrote: You need either pm_timer or hpet in order to switch to highres / dynticks. Are those enabled in the kernel config ? Yes, both were enabled. However, since this board is very old (bios is dated 2000), I had "acpi=off". Now removing that, makes the hrtimers to work.

Re: [patch] make pit clocksource continuous

2007-05-13 Thread Thomas Gleixner
On Sun, 2007-05-13 at 20:48 +0400, Stas Sergeev wrote: > Hello. > > Thomas Gleixner wrote: > > You need either pm_timer or hpet in order to switch to highres / > > dynticks. Are those enabled in the kernel config ? > Yes, both were enabled. > However, since this board is very old > (bios is dated

Re: [patch] make pit clocksource continuous

2007-05-13 Thread Thomas Gleixner
On Sun, 2007-05-13 at 13:04 +0400, Stas Sergeev wrote: > Hello. > > Thomas Gleixner wrote: > > The PIT can only be used as a clock source, when it is in periodic mode, > > but it is never continuous. If we miss one PIT interrupt the time > > keeping is hosed. > OK, thank you and Daniel for the ex

Re: [patch] make pit clocksource continuous

2007-05-13 Thread Stas Sergeev
Hello. Thomas Gleixner wrote: The PIT can only be used as a clock source, when it is in periodic mode, but it is never continuous. If we miss one PIT interrupt the time keeping is hosed. OK, thank you and Daniel for the explanations about the flag, but now to the problem. Before hrtimer_switch_

Re: [patch] make pit clocksource continuous

2007-05-13 Thread Thomas Gleixner
On Sun, 2007-05-13 at 03:18 +0400, Stas Sergeev wrote: > 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 > do

Re: [patch] make pit clocksource continuous

2007-05-12 Thread Daniel Walker
On Sun, 2007-05-13 at 03:18 +0400, Stas Sergeev wrote: > 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 > do

[patch] make pit clocksource continuous

2007-05-12 Thread Stas Sergeev
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... ---