b86fcc14 delphij Feb. 15, 2017, 7:22 a.m.
MFC after:	28 days
X-MFC-with:	r313695
cgit ViewVC
5ca946f0 delphij Feb. 15, 2017, 7:19 a.m.
28180eff markj Feb. 15, 2017, 6:07 a.m.
Suggested by:	mjg
MFC after:	1 week
cgit ViewVC
f3bae0ea gonzo Feb. 15, 2017, 2:52 a.m.
On laptops like the ThinkPad X240, ClickPad buttons are located at the
top. The hw.psm.synaptics.softbuttons_y sysctl was supposed to allow this
by setting the value to a negative one (e.g. -1700). However, the
condition was wrong (double negative), and doing that placed the buttons
in an unreachable area.

PR:		216342
Submitted by:	Greg V <greg@unrelenting.technology>
MFC after:	1 week
cgit ViewVC
c6a4ba5a markj Feb. 15, 2017, 1:50 a.m.
This effectively provides the same benefit as applying MADV_FREE inline
upon every execve, since the page daemon invokes lowmem handlers prior to
scanning the inactive queue. It also has less overhead; the cost of
applying MADV_FREE is very noticeable on many-CPU systems since it includes
that of a TLB shootdown of global PTEs. For instance, this change nearly
halves the system CPU usage during a buildkernel on a 128-vCPU EC2
instance (with some other patches applied).

Benchmarked by:	cperciva (earlier version)
Reviewed by:	kib
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D9586
cgit ViewVC
2fce30fa markj Feb. 15, 2017, 1:35 a.m.
MFC after:	1 week
cgit ViewVC
92b87cdb avg Feb. 14, 2017, 10:46 p.m.
This solves several problems.
First of all, cmc_throttle is specified in seconds and there was no
conversion between ticks and seconds when they were mixed together.
Second, we avoid potential problems with ticks wrapping around.

Resolution of time_uptime should be sufficient for the throttling
purposes.

Discussed with:	jhb
MFC after:	12 days
cgit ViewVC
3be5c621 avg Feb. 14, 2017, 10:30 p.m.
Previously, if the threshold was changed, then MC_CTL2_CMCI_EN would get
cleared and the logic would switch to the polling only mode.

Discussed with:	jhb
MFC after:	2 weeks
cgit ViewVC
b748360b glebius Feb. 14, 2017, 9:56 p.m.
listen(2) on it (see r313043).  Based on Hartmut's code.
cgit ViewVC
661c4fe5 markj Feb. 14, 2017, 9:55 p.m.
MFC after:	1 week
Sponsored by:	Dell EMC Isilon
cgit ViewVC
888e46a9 markj Feb. 14, 2017, 9:51 p.m.
NSS modules are loaded when nsswitch.conf is parsed and may register their
own atexit handlers with libc. nss_atexit() unloads any dynamically loaded
NSS modules, so it should run only after the modules' atexit handlers have
been invoked.

MFC after:	2 weeks
Sponsored by:	Dell EMC Isilon
cgit ViewVC
4c55b4e8 markj Feb. 14, 2017, 9:36 p.m.
This fixes several LINT targets.

Reviewed by:	Vincenzo Maffione
cgit ViewVC
7a60a910 ae Feb. 14, 2017, 9:33 p.m.
Submitted by:	netchild
cgit ViewVC
db83b143 garga Feb. 14, 2017, 9:14 p.m.
* Add missing parameters to manpage synopsis
* Add missing description of -d flag
* Sort flags descriptions

Reviewed by:	allanjude, kib
Approved by:	allanjude
MFC after:	1 week
Sponsored by:	Rubicon Communications (Netgate)
Differential Revision:	https://reviews.freebsd.org/D9152
cgit ViewVC
b6eed5e4 mav Feb. 14, 2017, 9:05 p.m.
MFC after:	2 weeks
cgit ViewVC