Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 234949
b: refs/heads/master
c: c487300
h: refs/heads/master
i:
  234947: 37f0bc0
v: v3
  • Loading branch information
Tejun Heo committed Jan 26, 2011
1 parent ff900b8 commit 0695587
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 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: ada609ee2ac2e03bd8abb07f9b3e92cd2e650f19
refs/heads/master: c48730056f69db30c075236f4ee2bc9d3f4f9985
10 changes: 2 additions & 8 deletions trunk/arch/arm/plat-omap/mailbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@

#include <plat/mailbox.h>

static struct workqueue_struct *mboxd;
static struct omap_mbox **mboxes;

static int mbox_configured;
Expand Down Expand Up @@ -197,7 +196,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:
queue_work(mboxd, &mbox->rxq->work);
schedule_work(&mbox->rxq->work);
}

static irqreturn_t mbox_interrupt(int irq, void *p)
Expand Down Expand Up @@ -307,7 +306,7 @@ static void omap_mbox_fini(struct omap_mbox *mbox)
if (!--mbox->use_count) {
free_irq(mbox->irq, mbox);
tasklet_kill(&mbox->txq->tasklet);
flush_work(&mbox->rxq->work);
flush_work_sync(&mbox->rxq->work);
mbox_queue_free(mbox->txq);
mbox_queue_free(mbox->rxq);
}
Expand Down Expand Up @@ -406,10 +405,6 @@ static int __init omap_mbox_init(void)
if (err)
return err;

mboxd = create_workqueue("mboxd");
if (!mboxd)
return -ENOMEM;

/* kfifo size sanity check: alignment and minimal size */
mbox_kfifo_size = ALIGN(mbox_kfifo_size, sizeof(mbox_msg_t));
mbox_kfifo_size = max_t(unsigned int, mbox_kfifo_size,
Expand All @@ -421,7 +416,6 @@ subsys_initcall(omap_mbox_init);

static void __exit omap_mbox_exit(void)
{
destroy_workqueue(mboxd);
class_unregister(&omap_mbox_class);
}
module_exit(omap_mbox_exit);
Expand Down

0 comments on commit 0695587

Please sign in to comment.