diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2006-03-09 09:30:33 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2006-03-09 09:30:33 +0000 |
commit | 6cda760f09d1486cb72c8f9dca51d7de0cc81539 (patch) | |
tree | 6190419c6594702ebce226ccd41edb64c61b6ffd /sys/kern/kern_tc.c | |
parent | c8d7706e75f71338224c13d655d6440761a5df32 (diff) | |
download | src-6cda760f09d1486cb72c8f9dca51d7de0cc81539.tar.gz src-6cda760f09d1486cb72c8f9dca51d7de0cc81539.zip |
silence cpu_tick calibration and notice only (under bootverbose)
when the frequency increases.
Notes
Notes:
svn path=/head/; revision=156483
Diffstat (limited to 'sys/kern/kern_tc.c')
-rw-r--r-- | sys/kern/kern_tc.c | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/sys/kern/kern_tc.c b/sys/kern/kern_tc.c index bb7eab80927d..9bb101de7f77 100644 --- a/sys/kern/kern_tc.c +++ b/sys/kern/kern_tc.c @@ -849,10 +849,6 @@ cpu_tick_calibrate(int reset) c_delta = c_this - c_last; t_delta = t_this; bintime_sub(&t_delta, &t_last); - if (bootverbose) { - printf("%ju.%016jx ", - (uintmax_t)t_delta.sec, (uintmax_t)t_delta.frac); - } /* * Validate that 16 +/- 1/256 seconds passed. * After division by 16 this gives us a precision of @@ -862,12 +858,16 @@ cpu_tick_calibrate(int reset) t_delta.sec == 16 && t_delta.frac >= (0x01LL << 56))) { /* too long */ if (bootverbose) - printf("\ttoo long\n"); + printf("%ju.%016jx too long\n", + (uintmax_t)t_delta.sec, + (uintmax_t)t_delta.frac); } else if (t_delta.sec < 15 || (t_delta.sec == 15 && t_delta.frac <= (0xffLL << 56))) { /* too short */ if (bootverbose) - printf("\ttoo short\n"); + printf("%ju.%016jx too short\n", + (uintmax_t)t_delta.sec, + (uintmax_t)t_delta.frac); } else { /* just right */ /* @@ -880,19 +880,12 @@ cpu_tick_calibrate(int reset) divi = t_delta.sec << 20; divi |= t_delta.frac >> (64 - 20); c_delta <<= 20; - if (bootverbose) - printf(" %ju / %ju", - (uintmax_t)c_delta, (uintmax_t)divi); c_delta /= divi; - if (bootverbose) - printf(" = %ju", c_delta); if (c_delta > cpu_tick_frequency) { if (bootverbose) - printf("\thigher\n"); + printf("cpu_tick increased to %ju Hz", + c_delta); cpu_tick_frequency = c_delta; - } else { - if (bootverbose) - printf("\tlower\n"); } } } |