Skip to contentSkip to conversation

rtc: nvidia-vrs10: remove locking in IRQ handler

PATCH New [email protected] 2 participants 2 messages Oct 9

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 1/1 rtc: nvidia-vrs10: remove locking in IRQ handler

From: Alexandre Belloni <[email protected]>

Remove locking in the interrupt handler as it is not necessary to be locked while calling rtc_update_irq().

---
 drivers/rtc/rtc-nvidia-vrs10.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/rtc/rtc-nvidia-vrs10.c +1 -4
index b15796698558..caac63f4e0fc 100644
@@ -358,11 +358,8 @@ static irqreturn_t nvvrs_rtc_irq_handler(int irq, void *data)
 	if (ret < 0)
 		return IRQ_NONE;
 
-	if (ret & NVVRS_INT_SRC1_RTC_MASK) {
-		rtc_lock(info->rtc);
+	if (ret & NVVRS_INT_SRC1_RTC_MASK)
 		rtc_update_irq(info->rtc, 1, RTC_IRQF | RTC_AF);
-		rtc_unlock(info->rtc);
-	}
 
 	/* Clear all interrupts */
 	if (nvvrs_pseq_irq_clear(info) < 0)
Signature · 1 line
2.55.0
#1 lore raw
Sashiko has reviewed this patch and found no issues. It looks great!
Quoted 6 lines

From: Alexandre Belloni <[email protected]>

Remove locking in the interrupt handler as it is not necessary to be locked while calling rtc_update_irq().

Sashiko has reviewed this patch and found no issues. It looks great!

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1