Skip to contentSkip to conversation

AMD IOMMU v2: minor cleanup

PATCH New Jan Beulich 1 participant 1 message Dec 1, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

xen/drivers/passthrough/amd/iommu_detect.c +1 -1
@@ -66,7 +66,7 @@ void __init get_iommu_features(struct am
 {
     u32 low, high;
     int i = 0 ;
-    char * feature_str[] = {
+    static const char *__initdata feature_str[] = {
         "- Prefetch Pages Command", 
         "- Peripheral Page Service Request", 
         "- X2APIC Supported", 

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.

xen/drivers/passthrough/amd/iommu_detect.c +1 -1
@@ -66,7 +66,7 @@ void __init get_iommu_features(struct am
 {
     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-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel