提交 6de3d6aa 编写于 作者: K K. Y. Srinivasan 提交者: Greg Kroah-Hartman

Staging: hv: Eliminate vmbus_event_dpc()

vmbus_event_dpc() was a wrapper function not adding any value;
get rid of it.
Signed-off-by: NK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: NHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: NMike Sterling <mike.sterling@microsoft.com>
Signed-off-by: NAbhishek Kane <v-abkane@microsoft.com>
Signed-off-by: NHank Janssen <hjanssen@microsoft.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 62c1059d
...@@ -285,7 +285,7 @@ static void process_chn_event(void *context) ...@@ -285,7 +285,7 @@ static void process_chn_event(void *context)
/* /*
* vmbus_on_event - Handler for events * vmbus_on_event - Handler for events
*/ */
void vmbus_on_event(void) void vmbus_on_event(unsigned long data)
{ {
int dword; int dword;
int maxdword = MAX_NUM_CHANNELS_SUPPORTED >> 5; int maxdword = MAX_NUM_CHANNELS_SUPPORTED >> 5;
......
...@@ -56,7 +56,6 @@ static int vmbus_probe(struct device *device); ...@@ -56,7 +56,6 @@ static int vmbus_probe(struct device *device);
static int vmbus_remove(struct device *device); static int vmbus_remove(struct device *device);
static void vmbus_shutdown(struct device *device); static void vmbus_shutdown(struct device *device);
static int vmbus_uevent(struct device *device, struct kobj_uevent_env *env); static int vmbus_uevent(struct device *device, struct kobj_uevent_env *env);
static void vmbus_event_dpc(unsigned long data);
static irqreturn_t vmbus_isr(int irq, void *dev_id); static irqreturn_t vmbus_isr(int irq, void *dev_id);
...@@ -485,7 +484,7 @@ static int vmbus_bus_init(void) ...@@ -485,7 +484,7 @@ static int vmbus_bus_init(void)
/* Initialize the bus context */ /* Initialize the bus context */
tasklet_init(&vmbus_drv_ctx->msg_dpc, vmbus_on_msg_dpc, tasklet_init(&vmbus_drv_ctx->msg_dpc, vmbus_on_msg_dpc,
(unsigned long)NULL); (unsigned long)NULL);
tasklet_init(&vmbus_drv_ctx->event_dpc, vmbus_event_dpc, tasklet_init(&vmbus_drv_ctx->event_dpc, vmbus_on_event,
(unsigned long)NULL); (unsigned long)NULL);
/* Now, register the bus with LDM */ /* Now, register the bus with LDM */
...@@ -985,14 +984,6 @@ static void vmbus_device_release(struct device *device) ...@@ -985,14 +984,6 @@ static void vmbus_device_release(struct device *device)
} }
/*
* vmbus_event_dpc - Tasklet routine to handle hypervisor events
*/
static void vmbus_event_dpc(unsigned long data)
{
/* Call to bus driver to handle interrupt */
vmbus_on_event();
}
static irqreturn_t vmbus_isr(int irq, void *dev_id) static irqreturn_t vmbus_isr(int irq, void *dev_id)
{ {
......
...@@ -129,7 +129,7 @@ int vmbus_post_msg(void *buffer, size_t buflen); ...@@ -129,7 +129,7 @@ int vmbus_post_msg(void *buffer, size_t buflen);
int vmbus_set_event(u32 child_relid); int vmbus_set_event(u32 child_relid);
void vmbus_on_event(void); void vmbus_on_event(unsigned long data);
#endif /* _VMBUS_PRIVATE_H_ */ #endif /* _VMBUS_PRIVATE_H_ */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册