/[base]
ViewVC logotype

Revision 340170


Jump to revision: Previous Next
Author: jhb
Date: Mon Nov 5 22:54:03 2018 UTC (5 years, 7 months ago)
Changed paths: 3
Log Message:
Add a custom implementation of cpu_lock_delay() for x86.

Avoid using DELAY() since it can try to use spin locks on CPUs without
a P-state invariant TSC.  For cpu_lock_delay(), always use the TSC if
it exists (even if it is not P-state invariant) to delay for a
microsecond.  If the TSC does not exist, read from I/O port 0x84 to
delay instead.

PR:		228768
Reported by:	Roger Hammerstein <cheeky.m@live.com>
Reviewed by:	kib
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D17851


Changed paths

Path Details
Directoryhead/sys/amd64/include/cpu.h modified , text changed
Directoryhead/sys/i386/include/cpu.h modified , text changed
Directoryhead/sys/x86/x86/delay.c modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27