[PATCH] powerpc/85xx: Convert socrates_fpga_pic_lock to raw_spinlock

Kumar Gala galak at kernel.crashing.org
Fri Feb 19 09:01:09 EST 2010


On Feb 18, 2010, at 7:45 AM, Anton Vorontsov wrote:

> Interrupt controllers' hooks are executed in the atomic context, so
> they are not permitted to sleep (with RT kernels non-raw spinlocks are
> sleepable). So, socrates_fpga_pic_lock has to be a real (non-sleepable)
> spinlock.
> 
> Signed-off-by: Anton Vorontsov <avorontsov at ru.mvista.com>
> ---
> 
> On Thu, Feb 18, 2010 at 12:22:18PM -0000, Thomas Gleixner wrote:
>> Ben,
>> 
>> the following patch series is from preempt-rt. It converts the locks
>> which need to be real spinlocks in -rt to raw_spinlocks.
>> 
>> There is no behaviourial change for !RT kernels because spinlocks and
>> raw_spinlocks are the same on !RT. So for mainline this is a pure
>> annotation while having it in mainline takes the burden of keeping up
>> with the code changes from the RT patch set.
>> 
>> Please consider to merge into .34.
> 
> Oh, and I guess the same for the socrates fpga pic...
> 
> arch/powerpc/platforms/85xx/socrates_fpga_pic.c |   34 +++++++++++-----------
> 1 files changed, 17 insertions(+), 17 deletions(-)

applied to next

- k


More information about the Linuxppc-dev mailing list