[LinuxPPS] Re: comfortable switch of clocksource ?

Bernhard Schiffner bernhard at schiffner-limbach.de
Thu Dec 7 20:09:05 CET 2006


> Is there any comfortable way known to switch, while the system is running?
> (a la echo tsc >/proc/clocksoure)

Yes, it is!
(found in kernel/time/clocksource.c)

root at bs4:~# 
cat /sys/devices/system/clocksource/clocksource0/current_clocksource
acpi_pm
root at bs4:~# 
cat /sys/devices/system/clocksource/clocksource0/available_clocksource
acpi_pm jiffies tsc pit
root at bs4:~# echo tsc 
> /sys/devices/system/clocksource/clocksource0/current_clocksource
root at bs4:~# 
cat /sys/devices/system/clocksource/clocksource0/current_clocksource
tsc


Bernhard



More information about the LinuxPPS mailing list