[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#432877: linux-image-2.6.21-2-686: adjtimex changes frequency-offset incorrectl\y



On Thu, 12 Jul 2007, ziegler@uni-freiburg.de wrote:

> The program
> #include<sys/timex.h>
> #include<stdio.h>
> int main()
> {
>   struct timex tx;
> 
>   /*get the clock parameters*/
>   tx.modes=0;
>   adjtimex(&tx);
>   printf("old frequency: %ld\n",tx.freq);
> 
>     /*Change the frequence*/
>   tx.freq=128350;
>   tx.modes=ADJ_FREQUENCY;
>   adjtimex(&tx);
>   printf("new frequency: %ld\n",tx.freq);
>   return 0;
> }
> prints
> 
> "old frequency: 128336
> new frequency: 128336".
> 
> But the new freqency should be 128350

can't reproduce that with 2.6.22 linux image:

old frequency: -3424768
new frequency: 128350

i guess the bug can be closed, please double check against 2.6.22
and report back.

regards

-- 
maks





Reply to: