.. And fix another typo. Grr.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@237957 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
For the ports modules building code, clean WRKDIR before building. This is
important for those that use -DNO_CLEAN routinely, since it will prevent
installing stale stuff, and even more important when the port is upgraded
to a newer version. When the user doesn't use -DNO_CLEAN, this will create
an infinitesimal amount of extra work, but won't hurt anything.

This is necessary because the ports tree has flags that prevent the ususal
'update the build if newer source files exist' logic from doing what it
would do in the base.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@237958 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Expose scrub and resilver tunables.
This allows the user to tune the priority trade-off between scrub/resilver
and other ZFS I/O.

MFC after:	2 weeks
Discussed with:	pjd


git-svn-id: svn+ssh://svn.freebsd.org/base/head@237972 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
- Call bus_generic_attach() at end of hdspe_attach().
- Use own devclass_t in DRIVER_MODULE().

This fixes operation of hdspe(4) when built as loadable module.

Submitted by:	Ruslan Bukin <br bsdpad.com>


git-svn-id: svn+ssh://svn.freebsd.org/base/head@237975 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add acpi_asus_wmi(4) -- driver for random extras found on WMI-compatible
Asus laptops. It is alike to acpi_asus(4), but uses WMI interface instead
of separate ACPI device.

On Asus EeePC T101MT netbook it allows to handle hotkeys and on/off WLAN,
Bluetooth, LCD backlight, camera, cardreader and touchpad.

On Asus UX31A ultrabook it allows to handle hotkeys, on/off WLAN, Bluetooth,
Wireless LED, control keyboard backlight brightness, monitor temperature
and fan speed. LCD brightness control doesn't work now for unknown reason,
possibly requiring some video card initialization.

Sponsored by:	iXsystems, Inc.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@237981 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix typo in r237981.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@237982 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Do not override an error from uiomove() with (non-)error result from
bwrite().  VFS needs to know about EFAULT from uiomove() and does not
care much that partially filled block writeback after EFAULT was
successfull.  Early return without error causes short write to be
reported to usermode.

Reported and tested by:	andreast
MFC after:	3 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@237987 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Issue proper diagnostic on the short writes, also consider the
case of write reporting 0 bytes as short write.

Reported and tested by:	adreast
MFC after:   1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@237988 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix XEN build, broken in r237924.

Reported by:	gcooper
Pointy hat:	brueffer


git-svn-id: svn+ssh://svn.freebsd.org/base/head@237996 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
New build KNOB: WITHOUT_PKGBOOTSTRAP to condition building of usr.sbin/pkg
Do not condition usr.sbin/pkg building on WITHOUT_PKGTOOLS anymore, so that users can
remove the old pkg_* tools without removing the pkgng boostrap

Approved by:	des (mentor)
MFC after:	1 month


git-svn-id: svn+ssh://svn.freebsd.org/base/head@237997 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Honor db_pager_quit in 'show uma' and 'show malloc'.

MFC after:	1 month


git-svn-id: svn+ssh://svn.freebsd.org/base/head@238000 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove dead code (on FreeBSD) as suggested by glebius@.

MFC after: 3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@238002 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Move common code parts to sctp_common_input_processing().

MFC after: 3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@238003 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Cosmetic display change of Cx states via cx_supported sysctl entries.

Adjust power_profile script to handle the new world order as well.

Some vendors are opting out of a C2 state and only defining C1 & C3.  This
leads the acpi_cpu display to indicate that the machine supports C1 & C2
which is caused by the (mis)use of the index of the cx_state array as the
ACPI_STATE_CX value.

e.g. the code was pretending that cx_state[i] would
always convert to i by subtracting 1.

cx_state[2] == ACPI_STATE_C3
cx_state[1] == ACPI_STATE_C2
cx_state[0] == ACPI_STATE_C1

however, on certain machines this would lead to
cx_state[1] == ACPI_STATE_C3
cx_state[0] == ACPI_STATE_C1

This didn't break anything but led to a display of:
 * dev.cpu.0.cx_supported: C1/1 C2/96

Instead of
 * dev.cpu.0.cx_supported: C1/1 C3/96

MFC after:	2 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@238004 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add reference to portsnap(8).

Submitted by:	Tim Kientzle
MFC after:	1 day


git-svn-id: svn+ssh://svn.freebsd.org/base/head@238008 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revert r238004 as more review has come in and there is now a discussion
on how to best proceed.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@238009 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix build after r237997.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@238010 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Restore GPIO config quirks handling, lost during last big refactoring.

Tested by:	hselasky
MFC after:	3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@238011 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add IDs for some USB controllers I have around. Just a cosmetics.

MFC after:	3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@238015 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove route caching from IP multicast routing code. There is no
reason to do that, and also, cached route never got unreferenced,
which meant a reference leak.

Reviewed by:	bms


git-svn-id: svn+ssh://svn.freebsd.org/base/head@238016 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f