Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 184776
b: refs/heads/master
c: 8250a5c
h: refs/heads/master
v: v3
  • Loading branch information
Rob Clark authored and Tony Lindgren committed Feb 23, 2010
1 parent 09ed132 commit 2b4caf1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: 4499ce42935db68debba0a2d2ab8280627e4b692
refs/heads/master: 8250a5c381cc6714a061a39cfd29d7453e8ad64b
8 changes: 7 additions & 1 deletion trunk/arch/arm/plat-omap/mailbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

#include <plat/mailbox.h>

static struct workqueue_struct *mboxd;
static struct omap_mbox *mboxes;
static DEFINE_RWLOCK(mboxes_lock);

Expand Down Expand Up @@ -188,7 +189,7 @@ static void __mbox_rx_interrupt(struct omap_mbox *mbox)
/* no more messages in the fifo. clear IRQ source. */
ack_mbox_irq(mbox, IRQ_RX);
nomem:
schedule_work(&mbox->rxq->work);
queue_work(mboxd, &mbox->rxq->work);
}

static irqreturn_t mbox_interrupt(int irq, void *p)
Expand Down Expand Up @@ -401,12 +402,17 @@ EXPORT_SYMBOL(omap_mbox_unregister);

static int __init omap_mbox_init(void)
{
mboxd = create_workqueue("mboxd");
if (!mboxd)
return -ENOMEM;

return 0;
}
module_init(omap_mbox_init);

static void __exit omap_mbox_exit(void)
{
destroy_workqueue(mboxd);
}
module_exit(omap_mbox_exit);

Expand Down

0 comments on commit 2b4caf1

Please sign in to comment.