[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] iommu: Do not initialise global vars explicitly to zero.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1256750867 0
# Node ID c1f2b68b6dcaf6f04fbd92da29ab253d0de501dc
# Parent  62313648c9f5bb6fc1a9b3a8f3fca88c13719914
iommu: Do not initialise global vars explicitly to zero.

Unnecessary and prevents them being allocated in BSS rather than data.

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 xen/drivers/passthrough/iommu.c |   19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)

diff -r 62313648c9f5 -r c1f2b68b6dca xen/drivers/passthrough/iommu.c
--- a/xen/drivers/passthrough/iommu.c   Wed Oct 28 17:27:09 2009 +0000
+++ b/xen/drivers/passthrough/iommu.c   Wed Oct 28 17:27:47 2009 +0000
@@ -37,19 +37,20 @@ static int iommu_populate_page_table(str
  *   no-intremap                Disable VT-d Interrupt Remapping
  */
 custom_param("iommu", parse_iommu_param);
-int iommu_enabled = 0;
-int iommu_pv_enabled = 0;
-int force_iommu = 0;
-int iommu_passthrough = 0;
-int iommu_snoop = 0;
-int iommu_qinval = 0;
-int iommu_intremap = 0;
-int amd_iommu_debug = 0;
-int amd_iommu_perdev_intremap = 0;
+int iommu_enabled;
+int iommu_pv_enabled;
+int force_iommu;
+int iommu_passthrough;
+int iommu_snoop;
+int iommu_qinval;
+int iommu_intremap;
+int amd_iommu_debug;
+int amd_iommu_perdev_intremap;
 
 static void __init parse_iommu_param(char *s)
 {
     char *ss;
+
     iommu_enabled = 1;
     iommu_snoop = 1;
     iommu_qinval = 1;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.