]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC: 210621
authorgnn <gnn@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 5 Aug 2010 20:02:59 +0000 (20:02 +0000)
committergnn <gnn@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 5 Aug 2010 20:02:59 +0000 (20:02 +0000)
commit4a217f7e5ee70b030f9b17e39efce806117df47a
tree0cba938db63761d539f996a37b7562665584ea0c
parent6690f211ab1e6fe726914be3f9a0b1f5a86b649e
MFC: 210621

Make sure that we clear the correct bits when we turn off
a PMC.  It was possible that we could have turned a bit on but
never cleared it.

Extend the calls to rdmsr() to all necessary functions, not
just those which previously caused a panic.

Pointed out by: jhb@

git-svn-id: svn://svn.freebsd.org/base/stable/8@210893 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/hwpmc/hwpmc_core.c
sys/dev/hwpmc/hwpmc_core.h