Commit 944f31a3 authored by Xiaofei Tan's avatar Xiaofei Tan Committed by sanglipeng
Browse files

rtc: cmos: Replace spin_lock_irqsave with spin_lock in hard IRQ

stable inclusion
from stable-v5.10.159
commit 17293d630f5f88355b43712888208945581cdc87
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7NTXH

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=17293d630f5f88355b43712888208945581cdc87



--------------------------------

[ Upstream commit 6950d046 ]

It is redundant to do irqsave and irqrestore in hardIRQ context, where
it has been in a irq-disabled context.

Signed-off-by: default avatarXiaofei Tan <tanxiaofei@huawei.com>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/1612355981-6764-2-git-send-email-tanxiaofei@huawei.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent abadc0f2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment