bring back r1.133. this is a bit different cos we're still using splvm to
authordlg <dlg@openbsd.org>
Tue, 12 Aug 2014 00:59:27 +0000 (00:59 +0000)
committerdlg <dlg@openbsd.org>
Tue, 12 Aug 2014 00:59:27 +0000 (00:59 +0000)
commit110ce7393d81f47dfffbc5a890c28fe57617aa1c
treeddb1c8f5147d6866885a959058a713e9b3eaa75a
parent503c9848e61cdf690b067f7de3ec44c9054fd073
bring back r1.133. this is a bit different cos we're still using splvm to
protect pool_list rather than the rwlock that made i386 blow up:

use pool_count to report the number of pools to userland rather
than walking the list and counting the elements as we go.

use sysctl_rdint, sysctl_rdstring, and sysctl_rdstruct instead of
handcrafted copyouts.
sys/kern/subr_pool.c