From: "Jan Beulich" Subject: [PATCH] AMD IOMMU v2: minor cleanup Date: Thu, 01 Dec 2011 11:56:36 +0000 Message-ID: <4ED779840200007800064B2B@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__PartFED16A64.1__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" Cc: Wei Wang2 List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__PartFED16A64.1__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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 --- a/xen/drivers/passthrough/amd/iommu_detect.c +++ b/xen/drivers/passthrough/amd/iommu_detect.c @@ -66,7 +66,7 @@ void __init get_iommu_features(struct am { u32 low, high; int i =3D 0 ; - char * feature_str[] =3D { + static const char *__initdata feature_str[] =3D { "- Prefetch Pages Command",=20 "- Peripheral Page Service Request",=20 "- X2APIC Supported",=20 --=__PartFED16A64.1__= Content-Type: text/plain; name="amd-iommu-v2-cleanup.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="amd-iommu-v2-cleanup.patch" AMD IOMMU v2: minor cleanup=0A=0ADespite this array living in an __init = function, having such be an=0Aautomatic variable is rather inefficient in = terms of generated code.=0A=0ASigned-off-by: Jan Beulich =0A=0A--- a/xen/drivers/passthrough/amd/iommu_detect.c=0A+++ b/xen/drivers= /passthrough/amd/iommu_detect.c=0A@@ -66,7 +66,7 @@ void __init get_iommu_f= eatures(struct am=0A {=0A u32 low, high;=0A int i =3D 0 ;=0A- = char * feature_str[] =3D {=0A+ static const char *__initdata feature_str= [] =3D {=0A "- Prefetch Pages Command", =0A "- Peripheral = Page Service Request", =0A "- X2APIC Supported", =0A --=__PartFED16A64.1__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=__PartFED16A64.1__=--