Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/i386 CPUID_TSC => cpu_hascounter(). This one w...
details: https://anonhg.NetBSD.org/src/rev/780583468f0b
branches: trunk
changeset: 754178:780583468f0b
user: jym <jym%NetBSD.org@localhost>
date: Thu Apr 22 21:02:25 2010 +0000
description:
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!
diffstat:
sys/arch/i386/i386/pmc.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r a4fafe7502e6 -r 780583468f0b sys/arch/i386/i386/pmc.c
--- a/sys/arch/i386/i386/pmc.c Thu Apr 22 20:25:16 2010 +0000
+++ b/sys/arch/i386/i386/pmc.c Thu Apr 22 21:02:25 2010 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index