Clamp too-large hwpmc callchaindepth to the maximum
authoremaste <emaste@FreeBSD.org>
Thu, 20 Nov 2014 23:16:19 +0000 (23:16 +0000)
committeremaste <emaste@FreeBSD.org>
Thu, 20 Nov 2014 23:16:19 +0000 (23:16 +0000)
commit7ed0dc3b7d060fe25947a8356da40e215f8b0d13
treefcf0e52b2a71b68a0177414f512ad884a81b825d
parent4c1f21b94e73bb3d630376deaf91af2cf45bc659
Clamp too-large hwpmc callchaindepth to the maximum

If the depth requested by the user is too large, it's better to provide
the maximum than the smaller default.

Sponsored by: The FreeBSD Foundation
sys/dev/hwpmc/hwpmc_mod.c