pc64: Turn CLK_USE_* flags into tunable, skip code when results are unused.
commit242fd95fc3bfeffee12345fa80766370654d2109
authorImre Vadász <imre@vdsz.com>
Thu, 31 Aug 2017 20:43:41 +0000 (31 22:43 +0200)
committerImre Vadász <imre@vdsz.com>
Fri, 1 Sep 2017 21:07:09 +0000 (1 23:07 +0200)
tree4c8dbfcbc54e45059efef3dd41fb9e0fc0f2c318
parentcf6b3eb151560a2fd7f82351b20f7c317617741e
pc64: Turn CLK_USE_* flags into tunable, skip code when results are unused.

* This should save ca. 1s during bootup, by skipping the i8254 and TSC
  calibration based on the RTC, when we aren't actually using the result
  in any way.

* For now, continue running that calibration code, when booting in verbose
  mode, to keep printing these potentially useful calibration results.

* Setting the hw.calibrate_timers_with_rtc tunable to 1, will enable this
  calibration code, and use those results for the i8254 and TSC frequencies.
sys/config/LINT64
sys/platform/pc64/isa/clock.c