Module Name: src
Committed By: jym
Date: Thu Apr 22 21:02:25 UTC 2010
Modified Files:
src/sys/arch/i386/i386: pmc.c
Log Message:
CPUID_TSC => cpu_hascounter(). This one was missing in my cpu_feature
rework patch.
Should fix the i386/ALL build issue many have reported. Thanks!
To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/i386/i386/pmc.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/i386/i386/pmc.c
diff -u src/sys/arch/i386/i386/pmc.c:1.17 src/sys/arch/i386/i386/pmc.c:1.18
--- src/sys/arch/i386/i386/pmc.c:1.17 Sun May 11 14:44:54 2008
+++ src/sys/arch/i386/i386/pmc.c Thu Apr 22 21:02:25 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: pmc.c,v 1.17 2008/05/11 14:44:54 ad Exp $ */
+/* $NetBSD: pmc.c,v 1.18 2010/04/22 21:02:25 jym Exp $ */
/*-
* Copyright (c) 2000 Zembu Labs, Inc.
@@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmc.c,v 1.17 2008/05/11 14:44:54 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmc.c,v 1.18 2010/04/22 21:02:25 jym Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -122,7 +122,7 @@
break;
}
- if (pmc_type != PMC_TYPE_NONE && (cpu_feature & CPUID_TSC) != 0)
+ if (pmc_type != PMC_TYPE_NONE && cpu_hascounter())
pmc_flags |= PMC_INFO_HASTSC;
#ifdef MULTIPROCESSOR