freebsd-skq/sys/amd64
attilio 6160c569c2 Currently the LO_NOPROFILE flag (which is masked on upper level code by
per-primitive macros like MTX_NOPROFILE, SX_NOPROFILE or RW_NOPROFILE) is
not really honoured. In particular lock_profile_obtain_lock_failure() and
lock_profile_obtain_lock_success() are naked respect this flag.
The bug leads to locks marked with no-profiling to be profiled as well.
In the case of the clock_lock, used by the timer i8254 this leads to
unpredictable behaviour both on amd64 and ia32 (double faults panic,
sudden reboots, etc.). The amd64 clock_lock is also not marked as
not profilable as it should be.
Fix these bugs adding proper checks in the lock profiling code and at
clock_lock initialization time.

i8254 bug pointed out by: kris
Tested by: matteo, Giuseppe Cocomazzi <sbudella at libero dot it>
Approved by: jeff (mentor)
Approved by: re
2007-09-14 01:12:39 +00:00
..
acpica Handle CPUs with APIC IDs higher than 32 (at least one IBM server uses 2007-05-08 22:01:04 +00:00
amd64 This is a follow-up, cleaning-up commit about recent changes involving 2007-09-11 22:54:09 +00:00
compile
conf Add a driver for the on-die digital thermal sensor found on Intel Core 2007-08-15 19:26:03 +00:00
ia32 Optimize vmmeter locking. 2007-06-10 21:59:14 +00:00
include Define an END() macro for use in i386 and amd64 assembly code, akin 2007-08-22 04:26:07 +00:00
isa Currently the LO_NOPROFILE flag (which is masked on upper level code by 2007-09-14 01:12:39 +00:00
linux32 Regenerate. 2007-08-28 12:36:23 +00:00
pci Revamp the MSI/MSI-X code a bit to achieve two main goals: 2007-05-02 17:50:36 +00:00
Makefile