Bring back rev 1.249.  Now that mp_setperf() has been fixed, it should be
safe to restore perflevel when resuming.  Should fix the issues people
see with the processor running at full speed heating up the machine while
the apm command reports that the CPUs are running at a low speed.

ok dcoppa@, deraadt@
fix the calculation of the number of items to prime the pool with
in pool_setlowat.

this was stopping arm things from getting spare items into their
pmap entry pools, so things that really needed them in a delicate
part of boot were failing.

reported by rapha@
co-debugging with miod@
now that mp setperf is fixed, let's try aggressive throttling again.
Rework piglet and pig allocation.  Currently the piglet gets allocated
deep down in the suspend path, where it is really hard to recover from
allocation failure.  So allocate the piglet early on in the suspend path.
Also change the piglet and piglet allocation functions to use km_alloc(9)
instead of doing pmemrange magic.  This removes a bunch of code which, in the
case of the piglet allocation, is broken since it results in a NULL pointer
dereference.  Also switch the piglet allocation to not wait.  If we can't
allocate 16MB of phys contig memory on a halfway modern machine we're almost
certainly under a lot of memory pressure and we're better off not trying to
hibernate anyway.

ok mlarkin@
Fix format signedness

ok blambert@ doug@
ansify; ok kettenis@
zap now unused "PERFINC"
restore original behavior of apmtimeout

ok tedu@
Revert a part of r1.98 if_run.c which caused a regression on older gen
run(4) devices.

ok stsp@
new ricoh controllers must also be pushed into "old slow mode" at resume
time.  ok kettenis jsg
Use correct format specifiers in various loongson machine dependent code.

Makes a loongson kernel buildable without -Wno-format.

ok miod@ jsg@
remove the last uses of -Wno-format
ok miod@ deraadt@ jsing@
Now that we have a static version of the default EC formats, also use it
for the server hello.

From OpenSSL.

ok miod@
remove explicit 'down' of an interface before starting a dhcp request, thereby
avoiding annoying delays for some switch configurations

ok claudio@ deraadt@

i would add ok phessler@, but it was not valid without an ok krw@
Don't mask off revision bits for tests against a full
device id/revision id value.  Makes it possible for se98 and stts424
sensors to match.

ok deraadt@
make the default of the "Change the default console" question depend
on whether the install is done on a serial console.

ok halex@, deraadt@ likes it too
X509at_add1_attr(): do not free stuff we did not allocate in the error path.
ok tedu@
X509_issuer_and_serial_hash(): do not leak memory if an error occurs during
the first EVP block.

ok tedu@
X509_STORE_new(): do not leak memory upon error.
X509_STORE_get1_certs(), X509_STORE_get1_crls(): check the result of
allocations.

ok tedu@
Add missing .An macros (found with mandoc -Tlint) and
resolve contractions (found with textproc/igor(1)).
Work done by Kaspars at Bankovskis dot net
during the EuroBSDCon 2014 documentation tutorial.

Very minor addition of a few more missing .An macros by myself.
add some more sdtemp devices
ok deraadt@