diff options
author | Dan Williams <dan.j.williams@intel.com> | 2009-09-08 20:55:21 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2009-09-08 20:55:21 -0400 |
commit | bbb20089a3275a19e475dbc21320c3742e3ca423 (patch) | |
tree | 216fdc1cbef450ca688135c5b8969169482d9a48 /drivers/rtc/interface.c | |
parent | 3e48e656903e9fd8bc805c6a2c4264d7808d315b (diff) | |
parent | 657a77fa7284d8ae28dfa48f1dc5d919bf5b2843 (diff) |
Merge branch 'dmaengine' into async-tx-next
Conflicts:
crypto/async_tx/async_xor.c
drivers/dma/ioat/dma_v2.h
drivers/dma/ioat/pci.c
drivers/md/raid5.c
Diffstat (limited to 'drivers/rtc/interface.c')
-rw-r--r-- | drivers/rtc/interface.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/rtc/interface.c b/drivers/rtc/interface.c index 4348c4b0d453..4cdb31a362ca 100644 --- a/drivers/rtc/interface.c +++ b/drivers/rtc/interface.c | |||
@@ -371,19 +371,21 @@ EXPORT_SYMBOL_GPL(rtc_update_irq_enable); | |||
371 | * @rtc: the rtc device | 371 | * @rtc: the rtc device |
372 | * @num: how many irqs are being reported (usually one) | 372 | * @num: how many irqs are being reported (usually one) |
373 | * @events: mask of RTC_IRQF with one or more of RTC_PF, RTC_AF, RTC_UF | 373 | * @events: mask of RTC_IRQF with one or more of RTC_PF, RTC_AF, RTC_UF |
374 | * Context: in_interrupt(), irqs blocked | 374 | * Context: any |
375 | */ | 375 | */ |
376 | void rtc_update_irq(struct rtc_device *rtc, | 376 | void rtc_update_irq(struct rtc_device *rtc, |
377 | unsigned long num, unsigned long events) | 377 | unsigned long num, unsigned long events) |
378 | { | 378 | { |
379 | spin_lock(&rtc->irq_lock); | 379 | unsigned long flags; |
380 | |||
381 | spin_lock_irqsave(&rtc->irq_lock, flags); | ||
380 | rtc->irq_data = (rtc->irq_data + (num << 8)) | events; | 382 | rtc->irq_data = (rtc->irq_data + (num << 8)) | events; |
381 | spin_unlock(&rtc->irq_lock); | 383 | spin_unlock_irqrestore(&rtc->irq_lock, flags); |
382 | 384 | ||
383 | spin_lock(&rtc->irq_task_lock); | 385 | spin_lock_irqsave(&rtc->irq_task_lock, flags); |
384 | if (rtc->irq_task) | 386 | if (rtc->irq_task) |
385 | rtc->irq_task->func(rtc->irq_task->private_data); | 387 | rtc->irq_task->func(rtc->irq_task->private_data); |
386 | spin_unlock(&rtc->irq_task_lock); | 388 | spin_unlock_irqrestore(&rtc->irq_task_lock, flags); |
387 | 389 | ||
388 | wake_up_interruptible(&rtc->irq_queue); | 390 | wake_up_interruptible(&rtc->irq_queue); |
389 | kill_fasync(&rtc->async_queue, SIGIO, POLL_IN); | 391 | kill_fasync(&rtc->async_queue, SIGIO, POLL_IN); |