File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -996,8 +996,9 @@ static u32 rtc_handler(void *context)
996
996
struct cmos_rtc * cmos = dev_get_drvdata (dev );
997
997
unsigned char rtc_control = 0 ;
998
998
unsigned char rtc_intr ;
999
+ unsigned long flags ;
999
1000
1000
- spin_lock_irq (& rtc_lock );
1001
+ spin_lock_irqsave (& rtc_lock , flags );
1001
1002
if (cmos_rtc .suspend_ctrl )
1002
1003
rtc_control = CMOS_READ (RTC_CONTROL );
1003
1004
if (rtc_control & RTC_AIE ) {
@@ -1006,7 +1007,7 @@ static u32 rtc_handler(void *context)
1006
1007
rtc_intr = CMOS_READ (RTC_INTR_FLAGS );
1007
1008
rtc_update_irq (cmos -> rtc , 1 , rtc_intr );
1008
1009
}
1009
- spin_unlock_irq (& rtc_lock );
1010
+ spin_unlock_irqrestore (& rtc_lock , flags );
1010
1011
1011
1012
pm_wakeup_event (dev , 0 );
1012
1013
acpi_clear_event (ACPI_EVENT_RTC );
You can’t perform that action at this time.
0 commit comments