Skip to contentSkip to conversation

AMD IOMMU v2: minor cleanup

PATCH Wei Wang2 1 participant 1 message Dec 2, 2011 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Wei Wang2

author
#1 lore raw
Quoted 8 lines · On Thursday 01 December 2011 12:56:36 Jan Beulich wrote:

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 void __init get_iommu_features(struct am · line 72

Quoted 8 lines
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",

Acked, thanks,
Wei