powerpc/mpc52xx_gpt: make use of raw_spinlock variants
authorJulia Cartwright <julia@ni.com>
Tue, 21 Mar 2017 22:43:03 +0000 (17:43 -0500)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 27 Jan 2018 10:12:04 +0000 (21:12 +1100)
commit77720c82915a8b7797e0041af95707d7485b4a40
tree7157efd278a769a3691adf125fb12df89ed227a2
parentf2be6295684b0fe879a824ac97479799e760b7e9
powerpc/mpc52xx_gpt: make use of raw_spinlock variants

The mpc52xx_gpt code currently implements an irq_chip for handling
interrupts; due to how irq_chip handling is done, it's necessary for
the irq_chip methods to be invoked from hardirq context, even on a a
real-time kernel. Because the spinlock_t type becomes a "sleeping"
spinlock w/ RT kernels, it is not suitable to be used with irq_chips.

A quick audit of the operations under the lock reveal that they do
only minimal, bounded work, and are therefore safe to do under a raw
spinlock.

Signed-off-by: Julia Cartwright <julia@ni.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/52xx/mpc52xx_gpt.c