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@
This commit is contained in:
parent
7ad17ef97e
commit
1020bb9756
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user