Linux RTC
 help / color / mirror / Atom feed
* [rtc-linux] [PATCH] rtc: rtc-rx8025: remove obsolete local_irq_disable() and  local_irq_enable() for rtc_update_irq()
@ 2015-07-21  7:11 Roosen Henri
  2015-07-22 22:05 ` [rtc-linux] " Alexandre Belloni
  0 siblings, 1 reply; 4+ messages in thread
From: Roosen Henri @ 2015-07-21  7:11 UTC (permalink / raw)
  To: rtc-linux@googlegroups.com, alexandre.belloni@free-electrons.com,
	a.zummo@towertech.it

>From b68f4bd992a6bf538edb860662be3178394f8bf5 Mon Sep 17 00:00:00 2001
From: Henri Roosen <henri.roosen@ginzinger.com>
Date: Thu, 16 Jul 2015 10:16:41 +0200
Subject: [PATCH] rtc: rtc-rx8025: remove obsolete local_irq_disable() and
 local_irq_enable() for rtc_update_irq()

Since commit e6229bec25be4ba00f31dd26e25721cc96c22262 rtc_update_irq()
is callable with irqs enabled.

Signed-off-by: Henri Roosen <henri.roosen@ginzinger.com>
---
 drivers/rtc/rtc-rx8025.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/rtc/rtc-rx8025.c b/drivers/rtc/rtc-rx8025.c
index e6298e0..9be9c37 100644
--- a/drivers/rtc/rtc-rx8025.c
+++ b/drivers/rtc/rtc-rx8025.c
@@ -161,9 +161,7 @@ static void rx8025_work(struct work_struct *work)
        if (status & RX8025_BIT_CTRL2_CTFG) {
                /* periodic */
                status &= ~RX8025_BIT_CTRL2_CTFG;
-               local_irq_disable();
                rtc_update_irq(rx8025->rtc, 1, RTC_PF | RTC_IRQF);
-               local_irq_enable();
        }

        if (status & RX8025_BIT_CTRL2_DAFG) {
@@ -172,9 +170,7 @@ static void rx8025_work(struct work_struct *work)
                if (rx8025_write_reg(client, RX8025_REG_CTRL1,
                                     rx8025->ctrl1 & ~RX8025_BIT_CTRL1_DALE))
                        goto out;
-               local_irq_disable();
                rtc_update_irq(rx8025->rtc, 1, RTC_AF | RTC_IRQF);
-               local_irq_enable();
        }

        /* acknowledge IRQ */
--
2.1.4

________________________________

Ginzinger electronic systems GmbH
Gewerbegebiet Pirath 16
4952 Weng im Innkreis
www.ginzinger.com

Firmenbuchnummer: FN 364958d
Firmenbuchgericht: Ried im Innkreis
UID-Nr.: ATU66521089

________________________________
*** BETRIEBSURLAUB VON MONTAG, DEN 27. JULI 2015 BIS FREITAG, DEN 7. AUGUST 2015 ***
*** COMPANY HOLIDAY FROM MONDAY, THE 27 JULY 2015 TO FRIDAY, 7 AUGUST 2015 ***

-- 
-- 
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
--- 
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-07-24  8:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-21  7:11 [rtc-linux] [PATCH] rtc: rtc-rx8025: remove obsolete local_irq_disable() and local_irq_enable() for rtc_update_irq() Roosen Henri
2015-07-22 22:05 ` [rtc-linux] " Alexandre Belloni
2015-07-24  8:14   ` [rtc-linux] AW: " Roosen Henri
2015-07-24  8:33     ` [rtc-linux] " Alexandre Belloni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox