[asterisk-users] Zaptel timer on Intel Dual Core servers

Tony Mountifield tony at softins.clara.co.uk
Tue Feb 5 10:07:19 CST 2008


Tzafrir Cohen <tzafrir.cohen at xorcom.com> wrote:
> On Tue, Feb 05, 2008 at 09:58:54AM +0000, Tony Mountifield wrote:
> > Specifically, what kernel version? 
> 
> As I understand from an IRC chat - CentOS 5 - 2.6.18-something.

Hmm, ok.

> > If you are using 2.6.9 (e.g. Centos 4),
> > then by default when you build ztdummy, it does NOT use USE_RTC (although
> > IMHO it should do). You should make the following change to ztdummy.c:
> > 
> >  #if LINUX_VERSION_CODE >= VERSION_CODE(2,6,13)
> 
> On a kernel version that calls itself 2.6.9, that part is never reached.
> So that point is mute.

"moot", not "mute".

But in fact, it isn't, since the #if's "then" part only goes as far as...

> >  #define USE_RTC

... here, ...

> >  #else

... and so we are here for kernel versions < 2.6.13

> > -#if 0
> > +#if 1
> >  #define USE_RTC
> >  #endif
> >  #endif

Cheers
Tony
-- 
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org



More information about the asterisk-users mailing list