freebsd-dev/sys/arm
Attilio Rao a4915c21d9 Merge from vmc-playground branch:
Replace the sub-optimal uma_zone_set_obj() primitive with more modern
uma_zone_reserve_kva().  The new primitive reserves before hand
the necessary KVA space to cater the zone allocations and allocates pages
with ALLOC_NOOBJ.  More specifically:
- uma_zone_reserve_kva() does not need an object to cater the backend
  allocator.
- uma_zone_reserve_kva() can cater M_WAITOK requests, in order to
  serve zones which need to do uma_prealloc() too.
- When possible, uma_zone_reserve_kva() uses directly the direct-mapping
  by uma_small_alloc() rather than relying on the KVA / offset
  combination.

The removal of the object attribute allows 2 further changes:
1) _vm_object_allocate() becomes static within vm_object.c
2) VM_OBJECT_LOCK_INIT() is removed.  This function is replaced by
   direct calls to mtx_init() as there is no need to export it anymore
   and the calls aren't either homogeneous anymore: there are now small
   differences between arguments passed to mtx_init().

Sponsored by:	EMC / Isilon storage division
Reviewed by:	alc (which also offered almost all the comments)
Tested by:	pho, jhb, davide
2013-02-26 23:35:27 +00:00
..
allwinner Define gpio constants rather than using enum. 2013-02-19 02:01:35 +00:00
arm Merge from vmc-playground branch: 2013-02-26 23:35:27 +00:00
at91 Eliminate a redundant #include: machine/pmap.h is already included 2013-02-26 07:41:34 +00:00
broadcom/bcm2835 Add macroses to properly map IO peripherals memory window from 2013-02-23 22:46:26 +00:00
compile
conf RPi users might want to touch the boot partition, which is always FAT 2013-02-26 04:59:02 +00:00
econa Initialize vm_max_kernel_address on non-FDT platforms. (This should have 2013-02-20 16:48:52 +00:00
include Export vfp_init() prototype, for use in the MP code. 2013-02-26 20:01:05 +00:00
lpc Mechanically substitute flags from historic mbuf allocator with 2012-12-05 08:04:20 +00:00
mv Add a default do-nothing implementation of fdt_pci_devmap() using a weak alias, 2013-01-27 00:39:02 +00:00
s3c2xx0 Initialize vm_max_kernel_address on non-FDT platforms. (This should have 2013-02-20 16:48:52 +00:00
sa11x0 Eliminate a redundant #include: machine/pmap.h is already included 2013-02-26 07:41:34 +00:00
tegra Merge the FDT versions of initarm. 2012-11-03 22:39:07 +00:00
ti Fix off-by-one error in sanity checks 2013-02-25 09:33:48 +00:00
versatile Fix background color calculation 2013-01-05 21:05:16 +00:00
xscale Initialize vm_max_kernel_address on non-FDT platforms. (This should have 2013-02-20 16:48:52 +00:00