コード例 #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
ファイル: kern_pmc.c プロジェクト: edgar-pek/PerspicuOS
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
}