Author: avg
Date: Tue Nov 23 14:36:14 2010
New Revision: 215751
URL: http://svn.freebsd.org/changeset/base/215751

Log:
  x86/local_apic: use newly added ARAT bit definition
  
  ARAT: APIC-Timer-always-running feature.
  
  Suggested by: mav
  MFC after:    12 days

Modified:
  head/sys/x86/x86/local_apic.c

Modified: head/sys/x86/x86/local_apic.c
==============================================================================
--- head/sys/x86/x86/local_apic.c       Tue Nov 23 14:30:22 2010        
(r215750)
+++ head/sys/x86/x86/local_apic.c       Tue Nov 23 14:36:14 2010        
(r215751)
@@ -251,7 +251,7 @@ lapic_init(vm_paddr_t addr)
                /* Intel CPUID 0x06 EAX[2] set if APIC timer runs in C3. */
                if (cpu_vendor_id == CPU_VENDOR_INTEL && cpu_high >= 6) {
                        do_cpuid(0x06, regs);
-                       if (regs[0] & 0x4)
+                       if ((regs[0] & CPUTPM1_ARAT) != 0)
                                arat = 1;
                }
                bzero(&lapic_et, sizeof(lapic_et));
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to