Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1367800 > unrolled thread

[PATCH 1/9] x86 tsc_msr: Identify Intel-specific code

Started byLen Brown <lenb@kernel.org>
First post2016-03-31 06:20 +0200
Last post2016-03-31 06:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 1/9] x86 tsc_msr: Identify Intel-specific code Len Brown <lenb@kernel.org> - 2016-03-31 06:20 +0200

#1367800 — [PATCH 1/9] x86 tsc_msr: Identify Intel-specific code

FromLen Brown <lenb@kernel.org>
Date2016-03-31 06:20 +0200
Subject[PATCH 1/9] x86 tsc_msr: Identify Intel-specific code
Message-ID<riCfo-7Lb-9@gated-at.bofh.it>
From: Len Brown <len.brown@intel.com>

try_msr_calibrate_tsc() is currently Intel-specific,
and should not execute on any other vendor's parts.

Signed-off-by: Len Brown <len.brown@intel.com>
---
 arch/x86/kernel/tsc_msr.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/x86/kernel/tsc_msr.c b/arch/x86/kernel/tsc_msr.c
index 92ae6ac..c16e35b 100644
--- a/arch/x86/kernel/tsc_msr.c
+++ b/arch/x86/kernel/tsc_msr.c
@@ -86,6 +86,9 @@ unsigned long try_msr_calibrate_tsc(void)
 	unsigned long res;
 	int cpu_index;
 
+	if (boot_cpu_data.x86_vendor != X86_VENDOR_INTEL)
+		return 0;
+
 	cpu_index = match_cpu(boot_cpu_data.x86, boot_cpu_data.x86_model);
 	if (cpu_index < 0)
 		return 0;
-- 
2.8.0.rc4.16.g56331f8

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web