From 1020bb97560062f4753d758803fc4d750eb3516b Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Wed, 20 Apr 2005 20:30:59 +0000 Subject: [PATCH] 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 or 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@ --- sys/kern/kern_pmc.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sys/kern/kern_pmc.c b/sys/kern/kern_pmc.c index 29be9c1617dd..c6fbb45d2928 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 __FBSDID("$FreeBSD$"); -#ifdef HWPMC_HOOKS - #include #include @@ -78,5 +75,3 @@ pmc_cpu_is_logical(int cpu) return 0; #endif } - -#endif /* HWPMC_HOOKS */