Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Switching clock from TSC to HPET on Linux.
tobert@spaceghost /sys/devices/system/clocksource/clocksource0 $ cat /proc/cpuinfo |grep 'model name' |head -n 1
model name : Intel(R) Xeon(R) CPU E31270 @ 3.40GHz
tobert@spaceghost /sys/devices/system/clocksource/clocksource0 $ cat /proc/version
Linux version 3.11.4-gentoo (root@sysresccd) (gcc version 4.6.4 (Funtoo 4.6.4) ) #1 SMP Mon Oct 7 05:33:55
tobert@spaceghost /sys/devices/system/clocksource/clocksource0 $ cat available_clocksource
tsc hpet acpi_pm
tobert@spaceghost /sys/devices/system/clocksource/clocksource0 $ cat current_clocksource
tsc
tobert@spaceghost /sys/devices/system/clocksource/clocksource0 $ echo hpet |sudo tee current_clocksource
hpet
tobert@spaceghost /sys/devices/system/clocksource/clocksource0 $ cat current_clocksource
hpet
tobert@spaceghost /sys/devices/system/clocksource/clocksource0 $ dmesg |tail
...
[77309.795037] Switched to clocksource hpet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.