summaryrefslogtreecommitdiffstats
path: root/kernel/time/clockevents.c
diff options
context:
space:
mode:
authorThomas Gleixner2008-01-30 13:30:03 +0100
committerIngo Molnar2008-01-30 13:30:03 +0100
commit1a0c009ac53de4a7664a1239936f0bc258133156 (patch)
tree37ee2c0707decfaaa1e34ed74282cd004fdc3b9d /kernel/time/clockevents.c
parentclocksource: add unregister function to disable unusable clocksources (diff)
downloadkernel-qcow2-linux-1a0c009ac53de4a7664a1239936f0bc258133156.tar.gz
kernel-qcow2-linux-1a0c009ac53de4a7664a1239936f0bc258133156.tar.xz
kernel-qcow2-linux-1a0c009ac53de4a7664a1239936f0bc258133156.zip
x86: unregister PIT clocksource when PIT is disabled
The following scenario might leave PIT as a disfunctional clock source: PIT is registered as clocksource PM_TIMER is registered as clocksource and enables highres/dyntick mode PIT is switched to oneshot mode -> now the readout of PIT is bogus, but the user might select PIT via the sysfs override, which would break the box as the time readout is unusable. Unregister the PIT clocksource when the PIT clock event device is switched into shutdown / oneshot mode. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/time/clockevents.c')
0 files changed, 0 insertions, 0 deletions