aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hv/vmbus_drv.c
diff options
context:
space:
mode:
authorK. Y. Srinivasan <kys@microsoft.com>2013-02-17 14:30:44 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-02-27 13:15:53 -0500
commit302a3c0f2757ae1a3e7df3f9fa1f20e2214ab945 (patch)
tree96ecde42daee8290abf6e6cfca635b5a3142bb64 /drivers/hv/vmbus_drv.c
parent09884964335e85e897876d17783c2ad33cf8a2e0 (diff)
Drivers: hv: vmbus: Use the new infrastructure for delivering VMBUS interrupts
Use the infrastructure for delivering VMBUS interrupts using a special vector. With this patch, we can now properly handle the VMBUS interrupts that can be delivered on any CPU. Also, turn on interrupt load balancing as well. This patch requires the infrastructure that was implemented in the patch: X86: Handle Hyper-V vmbus interrupts as special hypervisor interrupts Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hv/vmbus_drv.c')
-rw-r--r--drivers/hv/vmbus_drv.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c
index cf19dfa5ead1..bf421e0efa1e 100644
--- a/drivers/hv/vmbus_drv.c
+++ b/drivers/hv/vmbus_drv.c
@@ -36,6 +36,7 @@
36#include <linux/kernel_stat.h> 36#include <linux/kernel_stat.h>
37#include <asm/hyperv.h> 37#include <asm/hyperv.h>
38#include <asm/hypervisor.h> 38#include <asm/hypervisor.h>
39#include <asm/mshyperv.h>
39#include "hyperv_vmbus.h" 40#include "hyperv_vmbus.h"
40 41
41 42
@@ -528,7 +529,6 @@ static void vmbus_flow_handler(unsigned int irq, struct irq_desc *desc)
528static int vmbus_bus_init(int irq) 529static int vmbus_bus_init(int irq)
529{ 530{
530 int ret; 531 int ret;
531 unsigned int vector;
532 532
533 /* Hypervisor initialization...setup hypercall page..etc */ 533 /* Hypervisor initialization...setup hypercall page..etc */
534 ret = hv_init(); 534 ret = hv_init();
@@ -558,13 +558,16 @@ static int vmbus_bus_init(int irq)
558 */ 558 */
559 irq_set_handler(irq, vmbus_flow_handler); 559 irq_set_handler(irq, vmbus_flow_handler);
560 560
561 vector = IRQ0_VECTOR + irq; 561 /*
562 * Register our interrupt handler.
563 */
564 hv_register_vmbus_handler(irq, vmbus_isr);
562 565
563 /* 566 /*
564 * Notify the hypervisor of our irq and 567 * Initialize the per-cpu interrupt state and
565 * connect to the host. 568 * connect to the host.
566 */ 569 */
567 on_each_cpu(hv_synic_init, (void *)&vector, 1); 570 on_each_cpu(hv_synic_init, NULL, 1);
568 ret = vmbus_connect(); 571 ret = vmbus_connect();
569 if (ret) 572 if (ret)
570 goto err_irq; 573 goto err_irq;