diff options
author | Andy Shevchenko <[email protected]> | 2019-11-18 20:04:54 +0200 |
---|---|---|
committer | Andy Shevchenko <[email protected]> | 2019-12-13 16:48:47 +0200 |
commit | b2e05d63c295529879aabeb8781f947e1e2dca7b (patch) | |
tree | 22be0516bd025f3bf4a8d77326b352ed93340c10 /lib/test_overflow.c | |
parent | eb83479e18999e34b3b800f54aa31137f7f41c33 (diff) |
pinctrl: lynxpoint: Use raw_spinlock for locking
The Intel Lynxpoint pinctrl driver implements irqchip callbacks which are
called with desc->lock raw_spinlock held. In mainline this is fine because
spinlock resolves to raw_spinlock. However, running the same code in -rt
we will get a BUG() asserted.
This is because in -rt spinlocks are preemptible so taking the driver
private spinlock in irqchip callbacks causes might_sleep() to trigger.
In order to keep -rt happy but at the same time make sure that register
accesses get serialized, convert the driver to use raw_spinlock instead.
Reviewed-by: Linus Walleij <[email protected]>
Signed-off-by: Andy Shevchenko <[email protected]>
Acked-by: Mika Westerberg <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions