예제 #1
0
int
pmc_cpu_is_active(int cpu)
{
#ifdef	SMP
    return (pmc_cpu_is_present(cpu) &&
            (hlt_cpus_mask & (1 << cpu)) == 0);
#else
    return (1);
#endif
}
예제 #2
0
int
pmc_cpu_is_active(int cpu)
{
#ifdef	SMP
	return (pmc_cpu_is_present(cpu) &&
	    !CPU_ISSET(cpu, &hlt_cpus_mask));
#else
	return (1);
#endif
}