Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248913
b: refs/heads/master
c: 793be9c
h: refs/heads/master
i:
  248911: e779f96
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Apr 5, 2011
1 parent 11754bc commit c031cb2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 25 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: 086e7a5685babba533644acd1d39a81e3f8eed54
refs/heads/master: 793be9c76e7ca3841992e8bbdea46dcceb3e3118
47 changes: 23 additions & 24 deletions trunk/drivers/staging/hv/vmbus_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ struct hv_bus {
};


static irqreturn_t vmbus_isr(int irq, void *dev_id);

static ssize_t vmbus_show_device_attr(struct device *dev,
struct device_attribute *dev_attr,
Expand Down Expand Up @@ -91,6 +90,7 @@ static struct device_attribute vmbus_device_attrs[] = {
__ATTR_NULL
};


/*
* vmbus_uevent - add uevent for our device
*
Expand Down Expand Up @@ -417,6 +417,28 @@ static int vmbus_on_isr(void)
return ret;
}


static irqreturn_t vmbus_isr(int irq, void *dev_id)
{
int ret;

ret = vmbus_on_isr();

/* Schedules a dpc if necessary */
if (ret > 0) {
if (test_bit(0, (unsigned long *)&ret))
tasklet_schedule(&hv_bus.msg_dpc);

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

return IRQ_HANDLED;
} else {
return IRQ_NONE;
}
}


static void get_channel_info(struct hv_device *device,
struct hv_device_info *info)
{
Expand Down Expand Up @@ -836,29 +858,6 @@ void vmbus_child_device_unregister(struct hv_device *device_obj)
}



static irqreturn_t vmbus_isr(int irq, void *dev_id)
{
int ret;

ret = vmbus_on_isr();

/* Schedules a dpc if necessary */
if (ret > 0) {
if (test_bit(0, (unsigned long *)&ret))
tasklet_schedule(&hv_bus.msg_dpc);

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

return IRQ_HANDLED;
} else {
return IRQ_NONE;
}
}



static int __devinit hv_pci_probe(struct pci_dev *pdev,
const struct pci_device_id *ent)
{
Expand Down

0 comments on commit c031cb2

Please sign in to comment.