forked from torvalds/linux
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The kernel judges whether the tsc clock is accurate in the clocksource_watchdog background thread function. The hpet clock source is 32-bit, but tsc is 64-bit. Therefore, when the system is busy and the clocksource_watchdog cannot be scheduled in time, the hpet clock may overflow and cause the system to misjudge tsc as unreliable. In this case, we recommend that the kernel adopts the 64-bit hpet clock by default to keep the width of the two clock sources the same to reduce misjudgment. Some CPU models may not support 64-bit hpet, but according to the description of the CPU's register manual, it does not affect our reading action. Signed-off-by: zhaoyan.liao <zhaoyan.liao@linux.alibaba.com>
- Loading branch information
1 parent
2c88d45
commit 905ed01
Showing
1 changed file
with
60 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters