summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_pmc.c
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2005-04-20 20:30:59 +0000
committermarcel <marcel@FreeBSD.org>2005-04-20 20:30:59 +0000
commitdd5b3be596de3dc8fd4563818e40e186501034a1 (patch)
treee036ad78cb1597a030195ba07cb40af243eef789 /sys/kern/kern_pmc.c
parenteda3bd9ab926f45f2c639054684125798ac8c4a0 (diff)
downloadFreeBSD-src-dd5b3be596de3dc8fd4563818e40e186501034a1.zip
FreeBSD-src-dd5b3be596de3dc8fd4563818e40e186501034a1.tar.gz
Do not conditionally compile the contents of this file upon whether
HWPMC_HOOKS is defined. The pmc_cpu_is_*() functions in this file are referenced unconditionally by hwpmc(4). This is mostly a stop-gap. The pmc_cpu_is*() function should probably be declared inline in <sys/pmc.h> or <sys/pmckern.h> and the function pointers with corresponding SX lock should probably be moved to another file and compiled conditionally upon HWPMC_HOOKS. Ok'd by: jkoshy@
Diffstat (limited to 'sys/kern/kern_pmc.c')
-rw-r--r--sys/kern/kern_pmc.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/kern/kern_pmc.c b/sys/kern/kern_pmc.c
index 29be9c1..c6fbb45 100644
--- a/sys/kern/kern_pmc.c
+++ b/sys/kern/kern_pmc.c
@@ -21,14 +21,11 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
*/
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#ifdef HWPMC_HOOKS
-
#include <sys/pmckern.h>
#include <sys/smp.h>
@@ -78,5 +75,3 @@ pmc_cpu_is_logical(int cpu)
return 0;
#endif
}
-
-#endif /* HWPMC_HOOKS */
OpenPOWER on IntegriCloud