thermal/drivers/rcar: Replace spin_lock_irqsave by spin_lock in hard IRQ
authorTian Tao <tiantao6@hisilicon.com>
Tue, 27 Oct 2020 01:06:30 +0000 (09:06 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 27 Oct 2020 09:45:22 +0000 (10:45 +0100)
commit4eb7d0cd590d99b6010b5b87a88804cda09a85da
tree07adea7789c18c9974f4d2f51755764dfe39c63a
parent37b2539e63d6570c9ee51b1d48bdecb334df367d
thermal/drivers/rcar: Replace spin_lock_irqsave by spin_lock in hard IRQ

On RT or even on mainline with 'threadirqs' on the command line all
interrupts which are not explicitly requested with IRQF_NO_THREAD
run their handlers in thread context. The same applies to soft interrupts.
That means they are subject to the normal scheduler rules and no other
code is going to acquire that lock from hard interrupt context either,
so the irqsave() here is pointless in all cases.

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/1603760790-37748-1-git-send-email-tiantao6@hisilicon.com
drivers/thermal/rcar_thermal.c