freebsd-skq/sys/powerpc/booke
Attilio Rao 89f6b8632c Switch the vm_object mutex to be a rwlock. This will enable in the
future further optimizations where the vm_object lock will be held
in read mode most of the time the page cache resident pool of pages
are accessed for reading purposes.

The change is mostly mechanical but few notes are reported:
* The KPI changes as follow:
  - VM_OBJECT_LOCK() -> VM_OBJECT_WLOCK()
  - VM_OBJECT_TRYLOCK() -> VM_OBJECT_TRYWLOCK()
  - VM_OBJECT_UNLOCK() -> VM_OBJECT_WUNLOCK()
  - VM_OBJECT_LOCK_ASSERT(MA_OWNED) -> VM_OBJECT_ASSERT_WLOCKED()
    (in order to avoid visibility of implementation details)
  - The read-mode operations are added:
    VM_OBJECT_RLOCK(), VM_OBJECT_TRYRLOCK(), VM_OBJECT_RUNLOCK(),
    VM_OBJECT_ASSERT_RLOCKED(), VM_OBJECT_ASSERT_LOCKED()
* The vm/vm_pager.h namespace pollution avoidance (forcing requiring
  sys/mutex.h in consumers directly to cater its inlining functions
  using VM_OBJECT_LOCK()) imposes that all the vm/vm_pager.h
  consumers now must include also sys/rwlock.h.
* zfs requires a quite convoluted fix to include FreeBSD rwlocks into
  the compat layer because the name clash between FreeBSD and solaris
  versions must be avoided.
  At this purpose zfs redefines the vm_object locking functions
  directly, isolating the FreeBSD components in specific compat stubs.

The KPI results heavilly broken by this commit.  Thirdy part ports must
be updated accordingly (I can think off-hand of VirtualBox, for example).

Sponsored by:	EMC / Isilon storage division
Reviewed by:	jeff
Reviewed by:	pjd (ZFS specific review)
Discussed with:	alc
Tested by:	pho
2013-03-09 02:32:23 +00:00
..
clock.c MFcalloutng: 2013-02-28 13:46:03 +00:00
copyinout.c Use the ABI-mandated thread pointer register (r2 for ppc32, r13 for ppc64) 2011-06-23 22:21:28 +00:00
interrupt.c Use the ABI-mandated thread pointer register (r2 for ppc32, r13 for ppc64) 2011-06-23 22:21:28 +00:00
locore.S 1. Have the APs initialize the TLB1 entries from what has been 2012-11-03 22:02:12 +00:00
machdep_e500.c Extract vendor specific Book-E pieces into separate files and have a common 2012-05-30 17:34:40 +00:00
machdep_ppc4xx.c Extract vendor specific Book-E pieces into separate files and have a common 2012-05-30 17:34:40 +00:00
machdep.c Switch the vm_object mutex to be a rwlock. This will enable in the 2013-03-09 02:32:23 +00:00
mp_cpudep.c Add SMP support on U3-based G5 systems. This does not yet work perfectly: 2009-10-23 03:17:02 +00:00
platform_bare.c Introduce PLATFORMMETHOD_END and use it. 2013-02-13 02:21:45 +00:00
pmap.c Switch the vm_object mutex to be a rwlock. This will enable in the 2013-03-09 02:32:23 +00:00
swtch.S MFppc64: 2010-07-13 05:32:19 +00:00
trap_subr.S Fix a typo that resulted in or-ing PTE_UW twice whrn PTE_SW was needed. 2012-07-02 21:21:12 +00:00
trap.c userret() already checks for td_locks when INVARIANTS is enabled, so 2012-09-08 18:27:11 +00:00
vm_machdep.c For architectures not using direct map , and requiring real KVA page for 2011-01-18 21:57:02 +00:00