From: "Jan Beulich" Subject: [PATCH] x86: drop pointless CONFIG_X86_HT Date: Thu, 26 Jun 2014 11:23:13 +0100 Message-ID: <53AC10B1020000780001D8B6@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__PartE5D71081.0__=" Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1X06pn-0007x6-3B for xen-devel@lists.xenproject.org; Thu, 26 Jun 2014 10:23:15 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel Cc: Keir Fraser 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. --=__PartE5D71081.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Signed-off-by: Jan Beulich --- This requires the patch series at http://lists.xenproject.org/archives/html/xen-devel/2014-06/msg03336.html= =20 as a prerequisite. --- a/xen/arch/x86/cpu/amd.c +++ b/xen/arch/x86/cpu/amd.c @@ -385,7 +385,6 @@ static void check_syscfg_dram_mod_en(voi =20 static void __devinit amd_get_topology(struct cpuinfo_x86 *c) { -#ifdef CONFIG_X86_HT int cpu; unsigned bits; =20 @@ -423,7 +422,6 @@ static void __devinit amd_get_topology(s "Core", cpu_has(c, X86_FEATURE_TOPOEXT) ? c->compute_unit_i= d : c->cpu_core_id); -#endif } =20 static void __devinit init_amd(struct cpuinfo_x86 *c) --- a/xen/arch/x86/cpu/common.c +++ b/xen/arch/x86/cpu/common.c @@ -233,6 +233,7 @@ static void __cpuinit generic_identify(s c->x86_model +=3D ((tfms >> 16) & 0xF) << 4; c->x86_mask =3D tfms & 15; c->apicid =3D phys_pkg_id((ebx >> 24) & 0xFF, 0); + c->phys_proc_id =3D c->apicid; if ( cpu_has(c, X86_FEATURE_CLFLSH) ) c->x86_clflush_size =3D ((ebx >> 8) & 0xff) * 8; =20 @@ -257,10 +258,6 @@ static void __cpuinit generic_identify(s } =20 early_intel_workaround(c); - -#ifdef CONFIG_X86_HT - c->phys_proc_id =3D (cpuid_ebx(1) >> 24) & 0xff; -#endif } =20 /* @@ -429,7 +426,6 @@ void __cpuinit detect_extended_topology( } } =20 -#ifdef CONFIG_X86_HT void __cpuinit detect_ht(struct cpuinfo_x86 *c) { u32 eax, ebx, ecx, edx; @@ -474,7 +470,6 @@ void __cpuinit detect_ht(struct cpuinfo_ c->cpu_core_id); } } -#endif =20 unsigned int __init apicid_to_socket(unsigned int apicid) { --- a/xen/include/asm-x86/config.h +++ b/xen/include/asm-x86/config.h @@ -17,7 +17,6 @@ #define BITS_PER_XEN_ULONG BITS_PER_LONG =20 #define CONFIG_X86 1 -#define CONFIG_X86_HT 1 #define CONFIG_PAGING_ASSISTANCE 1 #define CONFIG_X86_LOCAL_APIC 1 #define CONFIG_X86_GOOD_APIC 1 --- a/xen/include/asm-x86/processor.h +++ b/xen/include/asm-x86/processor.h @@ -211,11 +211,7 @@ extern void dodgy_tsc(void); =20 extern void detect_extended_topology(struct cpuinfo_x86 *c); =20 -#ifdef CONFIG_X86_HT extern void detect_ht(struct cpuinfo_x86 *c); -#else -static always_inline void detect_ht(struct cpuinfo_x86 *c) {} -#endif =20 #define cpu_to_core(_cpu) (cpu_data[_cpu].cpu_core_id) #define cpu_to_socket(_cpu) (cpu_data[_cpu].phys_proc_id) --=__PartE5D71081.0__= Content-Type: text/plain; name="x86-drop-X86_HT.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="x86-drop-X86_HT.patch" x86: drop pointless CONFIG_X86_HT=0A=0ASigned-off-by: Jan Beulich = =0A---=0AThis requires the patch series at=0Ahttp://list= s.xenproject.org/archives/html/xen-devel/2014-06/msg03336.html=0Aas a = prerequisite.=0A=0A--- a/xen/arch/x86/cpu/amd.c=0A+++ b/xen/arch/x86/cpu/am= d.c=0A@@ -385,7 +385,6 @@ static void check_syscfg_dram_mod_en(voi=0A =0A = static void __devinit amd_get_topology(struct cpuinfo_x86 *c)=0A {=0A-#ifde= f CONFIG_X86_HT=0A int cpu;=0A unsigned bits;=0A =0A@@ = -423,7 +422,6 @@ static void __devinit amd_get_topology(s=0A = "Core",=0A = cpu_has(c, X86_FEATURE_TOPOEXT) ? c->compute_unit_id :=0A = c->cpu_core_id);=0A-#endif=0A = }=0A =0A static void __devinit init_amd(struct cpuinfo_x86 *c)=0A--- = a/xen/arch/x86/cpu/common.c=0A+++ b/xen/arch/x86/cpu/common.c=0A@@ -233,6 = +233,7 @@ static void __cpuinit generic_identify(s=0A c->x86_mode= l +=3D ((tfms >> 16) & 0xF) << 4;=0A c->x86_mask =3D tfms & 15;=0A = c->apicid =3D phys_pkg_id((ebx >> 24) & 0xFF, 0);=0A+ c->phys_proc_id = =3D c->apicid;=0A if ( cpu_has(c, X86_FEATURE_CLFLSH) )=0A = c->x86_clflush_size =3D ((ebx >> 8) & 0xff) * 8;=0A =0A@@ -257,10 +258,6 = @@ static void __cpuinit generic_identify(s=0A }=0A =0A early_intel= _workaround(c);=0A-=0A-#ifdef CONFIG_X86_HT=0A- c->phys_proc_id =3D = (cpuid_ebx(1) >> 24) & 0xff;=0A-#endif=0A }=0A =0A /*=0A@@ -429,7 +426,6 = @@ void __cpuinit detect_extended_topology(=0A }=0A }=0A =0A-#ifdef = CONFIG_X86_HT=0A void __cpuinit detect_ht(struct cpuinfo_x86 *c)=0A {=0A = u32 eax, ebx, ecx, edx;=0A@@ -474,7 +470,6 @@ void __cpuinit detect_ht(= struct cpuinfo_=0A c->cpu_core_id);=0A = }=0A }=0A-#endif=0A =0A unsigned int __init apicid_to_socket(unsigned int = apicid)=0A {=0A--- a/xen/include/asm-x86/config.h=0A+++ b/xen/include/asm-x= 86/config.h=0A@@ -17,7 +17,6 @@=0A #define BITS_PER_XEN_ULONG BITS_PER_LONG= =0A =0A #define CONFIG_X86 1=0A-#define CONFIG_X86_HT 1=0A #define = CONFIG_PAGING_ASSISTANCE 1=0A #define CONFIG_X86_LOCAL_APIC 1=0A #define = CONFIG_X86_GOOD_APIC 1=0A--- a/xen/include/asm-x86/processor.h=0A+++ = b/xen/include/asm-x86/processor.h=0A@@ -211,11 +211,7 @@ extern void = dodgy_tsc(void);=0A =0A extern void detect_extended_topology(struct = cpuinfo_x86 *c);=0A =0A-#ifdef CONFIG_X86_HT=0A extern void detect_ht(struc= t cpuinfo_x86 *c);=0A-#else=0A-static always_inline void detect_ht(struct = cpuinfo_x86 *c) {}=0A-#endif=0A =0A #define cpu_to_core(_cpu) (cpu_data[_= cpu].cpu_core_id)=0A #define cpu_to_socket(_cpu) (cpu_data[_cpu].phys_proc_= id)=0A --=__PartE5D71081.0__= 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.xen.org http://lists.xen.org/xen-devel --=__PartE5D71081.0__=--