Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Dec 2016 17:10:04 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r309483 - stable/11/sys/x86/x86
Message-ID:  <201612031710.uB3HA47A007143@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Sat Dec  3 17:10:04 2016
New Revision: 309483
URL: https://svnweb.freebsd.org/changeset/base/309483

Log:
  MFC r309189:
  Fix automatic eventtimer hardware selection when ARAT is not implemented,
  and do not ignore TSCDLT.

Modified:
  stable/11/sys/x86/x86/local_apic.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/x86/x86/local_apic.c
==============================================================================
--- stable/11/sys/x86/x86/local_apic.c	Sat Dec  3 16:52:40 2016	(r309482)
+++ stable/11/sys/x86/x86/local_apic.c	Sat Dec  3 17:10:04 2016	(r309483)
@@ -478,8 +478,9 @@ native_lapic_init(vm_paddr_t addr)
 		lapic_et.et_quality = 600;
 		if (!arat) {
 			lapic_et.et_flags |= ET_FLAGS_C3STOP;
-			lapic_et.et_quality -= 200;
-		} else if ((cpu_feature & CPUID_TSC) != 0 &&
+			lapic_et.et_quality = 100;
+		}
+		if ((cpu_feature & CPUID_TSC) != 0 &&
 		    (cpu_feature2 & CPUID2_TSCDLT) != 0 &&
 		    tsc_is_invariant && tsc_freq != 0) {
 			lapic_timer_tsc_deadline = 1;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612031710.uB3HA47A007143>