Fix the locking changes due to the TXQ change drive-by.

Tested:

* AR9580, STA mode


git-svn-id: svn://svn.freebsd.org/base/head@248675 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Move the TXQ lock earlier in this routine - so to correctly protect the
link pointer check.


git-svn-id: svn://svn.freebsd.org/base/head@248676 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add new regulatory domain.

Obtained from:	Qualcomm Atheros


git-svn-id: svn://svn.freebsd.org/base/head@248677 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix long known deadlock between geom dev destruction and d_close() call.
Use destroy_dev_sched_cb() to not wait for device destruction while holding
GEOM topology lock (that actually caused deadlock).  Use request counting
protected by mutex to properly wait for outstanding requests completion in
cases of device closing and geom destruction.  Unlike r227009, this code
does not block taskqueue thread for indefinite time, waiting for completion.


git-svn-id: svn://svn.freebsd.org/base/head@248679 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Resolve clang compile errors on amd64/i386 for certain by casting.

compile tested with clang on i386, amd64
compile tested with gcc on i386, amd64, sparc64

Submitted by:	delphij


git-svn-id: svn://svn.freebsd.org/base/head@248680 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add 2 more obsolete files and a missing date.


git-svn-id: svn://svn.freebsd.org/base/head@248682 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Micro-optimize the control flow in a few places.  Eliminate a panic call
that could never be reached in vm_radix_insert().  (If the pointer being
checked by the panic call were ever NULL, the immmediately preceding loop
would have already crashed on a NULL pointer dereference.)

Reviewed by:	attilio (an earlier version)
Sponsored by:	EMC / Isilon Storage Division


git-svn-id: svn://svn.freebsd.org/base/head@248684 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
No need to erase all 64 bytes of CFIS area if we never use more then 16.


git-svn-id: svn://svn.freebsd.org/base/head@248687 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Set the backlink in mmc commands to the mmc request that contains them.


git-svn-id: svn://svn.freebsd.org/base/head@248689 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Dtrace: add optional size argument to tracemem().

Merge change from illumos:

1455 DTrace tracemem() should take an optional size argument

Our local enhancements to dt_print_bytes were equivalent to
those in illumos but we made it match the illumos version
to ease further code merges.

For now leave out tst.smallsize.d and tst.smallsize.d.out
since those don't seem to work cleanly on FreeBSD.

This change bumps the DT_VERS_* number to 1.7.1 in accordance
to what is done in illumos.

Illumos Revision:	13457:571b0355c2e3

Reference:
https://www.illumos.org/issues/1455

Tested by:	Fabian Keil
Obtained from:	Illumos
MFC after:	1 month


git-svn-id: svn://svn.freebsd.org/base/head@248690 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Note that output is in seconds, not msec.
KNF indentation.
No functional change.
No change to printf strings.
No change to casting of printf arguments.

Reported by: Bruce Evans


git-svn-id: svn://svn.freebsd.org/base/head@248691 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sh(1): Mention possible ambiguities with $(( and ((.

In some other shells, things like $((a);(b)) are command substitutions.

Also, there are shells that have an extension ((ARITH)) that evaluates an
arithmetic expression and returns status 1 if the result is zero, 0
otherwise. This extension may lead to ambiguity with two subshells starting
in sequence.


git-svn-id: svn://svn.freebsd.org/base/head@248692 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add shlib-compat under tools.

shlib-compat is ABI compatibility checker for shared libraries with
symbol versioning.


git-svn-id: svn://svn.freebsd.org/base/head@248693 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Merge remote-tracking branch 'upstream/master'