Skip to content

Commit

Permalink
Staging: hv: Make event_dpc a stand alone variable
Browse files Browse the repository at this point in the history
In preparation for getting rid of struct hv_bus, Make event_dpc a
stand alone variable.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed May 3, 2011
1 parent 59c0e4f commit 66d9229
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/staging/hv/vmbus_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@
static struct pci_dev *hv_pci_dev;

static struct tasklet_struct msg_dpc;
static struct tasklet_struct event_dpc;

/* Main vmbus driver data structure */
struct hv_bus {
struct bus_type bus;
struct tasklet_struct event_dpc;
};

unsigned int vmbus_loglevel = (ALL_MODULES << 16 | INFO_LVL);
Expand Down Expand Up @@ -519,7 +519,7 @@ static irqreturn_t vmbus_isr(int irq, void *dev_id)
tasklet_schedule(&msg_dpc);

if (test_bit(1, (unsigned long *)&ret))
tasklet_schedule(&hv_bus.event_dpc);
tasklet_schedule(&event_dpc);

return IRQ_HANDLED;
} else {
Expand Down Expand Up @@ -552,7 +552,7 @@ static int vmbus_bus_init(struct pci_dev *pdev)

/* Initialize the bus context */
tasklet_init(&msg_dpc, vmbus_on_msg_dpc, 0);
tasklet_init(&hv_bus.event_dpc, vmbus_on_event, 0);
tasklet_init(&event_dpc, vmbus_on_event, 0);

/* Now, register the bus with LDM */
ret = bus_register(&hv_bus.bus);
Expand Down

0 comments on commit 66d9229

Please sign in to comment.