Lines Matching defs:timetrim
3 * timetrim.c
5 * "timetrim" allows setting and adjustment of the system clock frequency
10 * offset (drift) values; to convert to a timetrim value, multiply by
13 * "timetrim" with no arguments just prints out the current kernel value.
17 * than timetrim native units.
19 * Note that there is a limit of +-3000000 (0.3%) on the timetrim value
39 #define USAGE "usage: timetrim [-n] [[-i] value]\n"
51 long timetrim;
69 if (syssgi(SGI_GETTIMETRIM, &timetrim) < 0) {
75 if (systune(SYSTUNE_GET, "timetrim", &timetrim) < 0) {
83 fprintf(stdout, "%0.5f\n", SGITONTP(timetrim));
85 fprintf(stdout, "%ld\n", timetrim);
98 timetrim += value;
100 timetrim = value;
102 if (syssgi(SGI_SETTIMETRIM, timetrim) < 0) {
108 if (systune(SYSTUNE_SET, "timer", "timetrim", &timetrim) < 0) {