powerpc: Use one common impl. of RTAS timebase sync and use raw spinlock
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 16 Jun 2009 16:42:50 +0000 (16:42 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 26 Jun 2009 06:55:25 +0000 (16:55 +1000)
commitc4007a2fbf5f82b7e694c22b5929c87e38415a56
tree9f959ef72a62eea0638cd2b1ed85a6b2e7fb3a70
parentf97bb36f705da0a86b3ea77bfeee3415fee0b025
powerpc: Use one common impl. of RTAS timebase sync and use raw spinlock

Several platforms use their own copy of what is essentially the same code,
using RTAS to synchronize the timebases when bringing up new CPUs. This
moves it all into a single common implementation and additionally
turns the spinlock into a raw spinlock since the former can rely on
the timebase not being frozen when spinlock debugging is enabled, and finally
masks interrupts while the timebase is disabled.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/rtas.h
arch/powerpc/kernel/rtas.c
arch/powerpc/platforms/cell/smp.c
arch/powerpc/platforms/chrp/smp.c
arch/powerpc/platforms/pseries/smp.c