about summary refs log tree commit diff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-12-15 11:46:54 -0800
committerH.J. Lu <hjl.tools@gmail.com>2015-12-15 12:16:24 -0800
commite7b516ad591913995b928ce6db296e2c57a099e4 (patch)
tree5e8d8a1dcbfcea7772420dc797327b0f3d6398a5
parent5cee7c02d4a7eda73460405493032eb484a015be (diff)
downloadglibc-e7b516ad591913995b928ce6db296e2c57a099e4.tar.gz
glibc-e7b516ad591913995b928ce6db296e2c57a099e4.tar.xz
glibc-e7b516ad591913995b928ce6db296e2c57a099e4.zip
Enable Silvermont optimizations for Knights Landing
Knights Landing processor is based on Silvermont.  This patch enables
Silvermont optimizations for Knights Landing.

	* sysdeps/x86/cpu-features.c (init_cpu_features): Enable
	Silvermont optimizations for Knights Landing.

(cherry picked from commit c9afcaaafaf9126a973883528eed8d0058a264c0)
-rw-r--r--sysdeps/x86/cpu-features.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/x86/cpu-features.c b/sysdeps/x86/cpu-features.c
index 587080c1a4..fa54744e9f 100644
--- a/sysdeps/x86/cpu-features.c
+++ b/sysdeps/x86/cpu-features.c
@@ -69,6 +69,9 @@ init_cpu_features (struct cpu_features *cpu_features)
 	      cpu_features->feature[index_Slow_BSF] |= bit_Slow_BSF;
 	      break;
 
+	    case 0x57:
+	      /* Knights Landing.  Enable Silvermont optimizations.  */
+
 	    case 0x37:
 	    case 0x4a:
 	    case 0x4d: