Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 234956
b: refs/heads/master
c: 51f50f8
h: refs/heads/master
v: v3
  • Loading branch information
Tejun Heo committed Feb 1, 2011
1 parent 883c9d9 commit 2da1c1a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 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: 52286713a9ae1c4c80d521a8990e8c3ba14118f3
refs/heads/master: 51f50f815778b91c699fbcc3aac0dda891a7b795
4 changes: 1 addition & 3 deletions trunk/drivers/misc/iwmc3200top/iwmc3200top.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,7 @@ struct iwmct_priv {
u32 barker;
struct iwmct_dbg dbg;

/* drivers work queue */
struct workqueue_struct *wq;
struct workqueue_struct *bus_rescan_wq;
/* drivers work items */
struct work_struct bus_rescan_worker;
struct work_struct isr_worker;

Expand Down
14 changes: 5 additions & 9 deletions trunk/drivers/misc/iwmc3200top/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ static void op_top_message(struct iwmct_priv *priv, struct top_msg *msg)
switch (msg->hdr.opcode) {
case OP_OPR_ALIVE:
LOG_INFO(priv, FW_MSG, "Got ALIVE from device, wake rescan\n");
queue_work(priv->bus_rescan_wq, &priv->bus_rescan_worker);
schedule_work(&priv->bus_rescan_worker);
break;
default:
LOG_INFO(priv, FW_MSG, "Received msg opcode 0x%X\n",
Expand Down Expand Up @@ -360,7 +360,7 @@ static void iwmct_irq(struct sdio_func *func)
/* clear the function's interrupt request bit (write 1 to clear) */
sdio_writeb(func, 1, IWMC_SDIO_INTR_CLEAR_ADDR, &ret);

queue_work(priv->wq, &priv->isr_worker);
schedule_work(&priv->isr_worker);

LOG_TRACE(priv, IRQ, "exit iwmct_irq\n");

Expand Down Expand Up @@ -506,10 +506,6 @@ static int iwmct_probe(struct sdio_func *func,
priv->func = func;
sdio_set_drvdata(func, priv);


/* create drivers work queue */
priv->wq = create_workqueue(DRV_NAME "_wq");
priv->bus_rescan_wq = create_workqueue(DRV_NAME "_rescan_wq");
INIT_WORK(&priv->bus_rescan_worker, iwmct_rescan_worker);
INIT_WORK(&priv->isr_worker, iwmct_irq_read_worker);

Expand Down Expand Up @@ -604,9 +600,9 @@ static void iwmct_remove(struct sdio_func *func)
sdio_release_irq(func);
sdio_release_host(func);

/* Safely destroy osc workqueue */
destroy_workqueue(priv->bus_rescan_wq);
destroy_workqueue(priv->wq);
/* Make sure works are finished */
flush_work_sync(&priv->bus_rescan_worker);
flush_work_sync(&priv->isr_worker);

sdio_claim_host(func);
sdio_disable_func(func);
Expand Down

0 comments on commit 2da1c1a

Please sign in to comment.