vmbus_drv.c (74be62c7cefbf320e0605f3da6639ef80448ff00) | vmbus_drv.c (7415aea6072bab15969b6c3c5b2a193d88095326) |
---|---|
1/* 2 * Copyright (c) 2009, Microsoft Corporation. 3 * 4 * This program is free software; you can redistribute it and/or modify it 5 * under the terms and conditions of the GNU General Public License, 6 * version 2, as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope it will be useful, but WITHOUT --- 1437 unchanged lines hidden (view full) --- 1446 __release_region(iter, start, size); 1447 } 1448 release_mem_region(start, size); 1449 up(&hyperv_mmio_lock); 1450 1451} 1452EXPORT_SYMBOL_GPL(vmbus_free_mmio); 1453 | 1/* 2 * Copyright (c) 2009, Microsoft Corporation. 3 * 4 * This program is free software; you can redistribute it and/or modify it 5 * under the terms and conditions of the GNU General Public License, 6 * version 2, as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope it will be useful, but WITHOUT --- 1437 unchanged lines hidden (view full) --- 1446 __release_region(iter, start, size); 1447 } 1448 release_mem_region(start, size); 1449 up(&hyperv_mmio_lock); 1450 1451} 1452EXPORT_SYMBOL_GPL(vmbus_free_mmio); 1453 |
1454/** 1455 * vmbus_cpu_number_to_vp_number() - Map CPU to VP. 1456 * @cpu_number: CPU number in Linux terms 1457 * 1458 * This function returns the mapping between the Linux processor 1459 * number and the hypervisor's virtual processor number, useful 1460 * in making hypercalls and such that talk about specific 1461 * processors. 1462 * 1463 * Return: Virtual processor number in Hyper-V terms 1464 */ 1465int vmbus_cpu_number_to_vp_number(int cpu_number) 1466{ 1467 return hv_context.vp_index[cpu_number]; 1468} 1469EXPORT_SYMBOL_GPL(vmbus_cpu_number_to_vp_number); 1470 | |
1471static int vmbus_acpi_add(struct acpi_device *device) 1472{ 1473 acpi_status result; 1474 int ret_val = -ENODEV; 1475 struct acpi_device *ancestor; 1476 1477 hv_acpi_dev = device; 1478 --- 142 unchanged lines hidden --- | 1454static int vmbus_acpi_add(struct acpi_device *device) 1455{ 1456 acpi_status result; 1457 int ret_val = -ENODEV; 1458 struct acpi_device *ancestor; 1459 1460 hv_acpi_dev = device; 1461 --- 142 unchanged lines hidden --- |