linux-stable-rt/arch
Thomas Gleixner 8cab02dc3c x86: Do not unregister PIT clocksource on PIT oneshot setup/shutdown
This basically reverts commit 1a0c009ac (x86: unregister PIT
clocksource when PIT is disabled) because the problem which was tried
to address with that patch has been solved by commit 3f68535ada
(clocksource: sanity check sysfs clocksource changes).

The problem addressed by the original patch is that PIT could be
selected as clocksource after the system switched the PIT off or set
the PIT into one shot mode which would result in complete timekeeping
wreckage.

Now with the sysfs sanity check in place PIT cannot be selected again
when the system is in oneshot mode. The system will not switch to one
shot mode as long as PIT is installed because PIT is not suitable for
one shot.

The shutdown case which happens when the lapic timer is installed is
covered by the fact that init_pit_clocksource() is called after the
lapic timer take over and then does not install the PIT clocksource
at all.

We should have done the sanity checks back then, but ...

This also solves the locking problem which was reported vs. the
clocksource rework.

LKML-Reference: <new-submission>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: john stultz <johnstul@us.ibm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2009-08-21 21:13:37 +02:00
..
alpha
arm timekeeping: Move NTP adjusted clock multiplier to struct timekeeper 2009-08-15 10:55:46 +02:00
avr32
blackfin
cris
frv
h8300
ia64 arch/ia64/kernel/iosapic: missing test after ioremap() 2009-08-11 14:52:11 -07:00
m32r
m68k
m68knommu timekeeping: Increase granularity of read_persistent_clock() 2009-08-15 10:55:46 +02:00
microblaze
mips timekeeping: Increase granularity of read_persistent_clock() 2009-08-15 10:55:46 +02:00
mn10300 MN10300: includecheck fix: mn10300, pci.h 2009-08-10 08:54:27 -07:00
parisc parisc: Set correct bit in protection flags 2009-08-02 12:36:05 +02:00
powerpc timekeeping: Increase granularity of read_persistent_clock() 2009-08-15 10:55:46 +02:00
s390 timekeeping: Introduce read_boot_clock 2009-08-15 10:55:47 +02:00
sh timekeeping: Increase granularity of read_persistent_clock() 2009-08-15 10:55:46 +02:00
sparc
um
x86 x86: Do not unregister PIT clocksource on PIT oneshot setup/shutdown 2009-08-21 21:13:37 +02:00
xtensa timekeeping: Increase granularity of read_persistent_clock() 2009-08-15 10:55:46 +02:00
.gitignore
Kconfig