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

[Xen-changelog] [xen-unstable] AMD IOMMU v2: minor cleanup



# HG changeset patch
# User Jan Beulich <jbeulich@xxxxxxxx>
# Date 1322832167 -3600
# Node ID 771e2a303753666c5bc23557264b7a6df96e6b89
# Parent  60d4e257d04ba0bd663bbef5e93a97b6d8b66e54
AMD IOMMU v2: minor cleanup

Despite this array living in an __init function, having such be an
automatic variable is rather inefficient in terms of generated code.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
Acked-by: Wei Wang2 <wei.wang2@xxxxxxx>
---


diff -r 60d4e257d04b -r 771e2a303753 xen/drivers/passthrough/amd/iommu_detect.c
--- a/xen/drivers/passthrough/amd/iommu_detect.c        Fri Dec 02 09:05:26 
2011 +0100
+++ b/xen/drivers/passthrough/amd/iommu_detect.c        Fri Dec 02 14:22:47 
2011 +0100
@@ -66,7 +66,7 @@
 {
     u32 low, high;
     int i = 0 ;
-    char * feature_str[] = {
+    static const char *__initdata feature_str[] = {
         "- Prefetch Pages Command", 
         "- Peripheral Page Service Request", 
         "- X2APIC Supported", 

_______________________________________________
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®.