aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-ti.c
diff options
context:
space:
mode:
authorJulien Grall <[email protected]>2019-03-13 11:40:34 +0000
committerGreg Kroah-Hartman <[email protected]>2019-03-28 01:24:55 +0900
commit6ac972dd4db42ef4e298669647b946de4e0243aa (patch)
tree8f8790416f5567648b2035fce04def46328f10a5 /drivers/usb/cdns3/cdns3-ti.c
parent6b77908fea62f8416b0f67d55c30b472a8eae890 (diff)
tty/sysrq: Convert show_lock to raw_spinlock_t
Systems which don't provide arch_trigger_cpumask_backtrace() will invoke showacpu() from a smp_call_function() function which is invoked with disabled interrupts even on -RT systems. The function acquires the show_lock lock which only purpose is to ensure that the CPUs don't print simultaneously. Otherwise the output would clash and it would be hard to tell the output from CPUx apart from CPUy. On -RT the spin_lock() can not be acquired from this context. A raw_spin_lock() is required. It will introduce the system's latency by performing the sysrq request and other CPUs will block on the lock until the request is done. This is okay because the user asked for a backtrace of all active CPUs and under "normal circumstances in production" this path should not be triggered. Signed-off-by: Julien Grall <[email protected]> [[email protected]: commit description] Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Acked-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-ti.c')
0 files changed, 0 insertions, 0 deletions