Lines Matching +full:tx +full:- +full:freq
6 * NOTE: This is a meta-test which cranks the ADJ_FREQ knob and
8 * that the raw_skew, inconsistency-check and nanosleep tests be
12 * $ gcc change_skew.c -o change_skew -lrt
35 struct timex tx; in change_skew_test() local
38 tx.modes = ADJ_FREQUENCY; in change_skew_test()
39 tx.freq = ppm << 16; in change_skew_test()
41 ret = adjtimex(&tx); in change_skew_test()
43 printf("Error adjusting freq\n"); in change_skew_test()
48 ret |= system("./inconsistency-check"); in change_skew_test()
57 struct timex tx; in main() local
60 int ppm[5] = {0, 250, 500, -250, -500}; in main()
63 ret = system("killall -9 ntpd"); in main()
66 tx.modes = ADJ_OFFSET; in main()
67 tx.offset = 0; in main()
68 ret = adjtimex(&tx); in main()
72 return -1; in main()
83 tx.modes = ADJ_FREQUENCY; in main()
84 tx.offset = 0; in main()
85 adjtimex(&tx); in main()