Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219719
b: refs/heads/master
c: b6e5d69
h: refs/heads/master
i:
  219717: 31bd69e
  219715: d3f7236
  219711: eccc417
v: v3
  • Loading branch information
Jonathan Cameron authored and Greg Kroah-Hartman committed Sep 5, 2010
1 parent b9e3928 commit c37a3a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b156cf70e1f4befc4856baaf9681dede9a143888
refs/heads/master: b6e5d69a9e74e08e7f29275797ed9f347c1cde6b
13 changes: 2 additions & 11 deletions trunk/drivers/staging/iio/industrialio-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,19 +125,10 @@ static irqreturn_t iio_interrupt_handler(int irq, void *_int_info)
}

time_ns = iio_get_time_ns();
/* detect single element list*/
if (list_is_singular(&int_info->ev_list)) {
list_for_each_entry(p, &int_info->ev_list, list) {
disable_irq_nosync(irq);
p = list_first_entry(&int_info->ev_list,
struct iio_event_handler_list,
list);
/* single event handler - maybe shared */
p->handler(dev_info, 1, time_ns, !(p->refcount > 1));
} else
list_for_each_entry(p, &int_info->ev_list, list) {
disable_irq_nosync(irq);
p->handler(dev_info, 1, time_ns, 0);
}
}
spin_unlock_irqrestore(&int_info->ev_list_lock, flags);

return IRQ_HANDLED;
Expand Down

0 comments on commit c37a3a8

Please sign in to comment.