From dd5b3be596de3dc8fd4563818e40e186501034a1 Mon Sep 17 00:00:00 2001 From: marcel Date: Wed, 20 Apr 2005 20:30:59 +0000 Subject: 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(-) (limited to 'sys/kern/kern_pmc.c') 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 __FBSDID("$FreeBSD$"); -#ifdef HWPMC_HOOKS - #include #include @@ -78,5 +75,3 @@ pmc_cpu_is_logical(int cpu) return 0; #endif } - -#endif /* HWPMC_HOOKS */ -- cgit v1.1