mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 16:15:07 -05:00
sys: set tick_update_hz to 100 by default in Linux driver
We can't reliably detect the internal kernel HZ, it may not even be fixed (CONFIG_NO_HZ). Use a fixed value of 100.
This commit is contained in:
@@ -298,7 +298,10 @@ get_version_specific_details(void)
|
|||||||
basic_freq_scale = dshift_hz / dhz;
|
basic_freq_scale = dshift_hz / dhz;
|
||||||
nominal_tick = (1000000L + (hz/2))/hz; /* Mirror declaration in kernel */
|
nominal_tick = (1000000L + (hz/2))/hz; /* Mirror declaration in kernel */
|
||||||
max_tick_bias = nominal_tick / 10;
|
max_tick_bias = nominal_tick / 10;
|
||||||
tick_update_hz = hz;
|
|
||||||
|
/* We can't reliably detect the internal kernel HZ, it may not even be fixed
|
||||||
|
(CONFIG_NO_HZ aka tickless), assume the lowest commonly used fixed rate */
|
||||||
|
tick_update_hz = 100;
|
||||||
|
|
||||||
/* The basic_freq_scale comes from:
|
/* The basic_freq_scale comes from:
|
||||||
* the kernel increments the usec counter HZ times per second (if the timer
|
* the kernel increments the usec counter HZ times per second (if the timer
|
||||||
|
|||||||
Reference in New Issue
Block a user