]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbbbd186a52e8d0003a8e89103ade9739499fee87
tree9f959ef72a62eea0638cd2b1ed85a6b2e7fb3a70
parentb5f08b6de1fbff4b87eeb6b42808258b0826f097
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