Module Name: src
Committed By: jruoho
Date: Thu Feb 24 15:47:59 UTC 2011
Modified Files:
src/sys/arch/x86/x86: est.c
Log Message:
Do not return the bus clock directly in the match() function.
To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/arch/x86/x86/est.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/x86/x86/est.c
diff -u src/sys/arch/x86/x86/est.c:1.22 src/sys/arch/x86/x86/est.c:1.23
--- src/sys/arch/x86/x86/est.c:1.22 Thu Feb 24 15:42:17 2011
+++ src/sys/arch/x86/x86/est.c Thu Feb 24 15:47:59 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: est.c,v 1.22 2011/02/24 15:42:17 jruoho Exp $ */
+/* $NetBSD: est.c,v 1.23 2011/02/24 15:47:59 jruoho Exp $ */
/*
* Copyright (c) 2003 Michael Eriksson.
* All rights reserved.
@@ -76,7 +76,7 @@
* http://www.codemonkey.org.uk/projects/cpufreq/cpufreq-2.4.22-pre6-1.gz
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: est.c,v 1.22 2011/02/24 15:42:17 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: est.c,v 1.23 2011/02/24 15:47:59 jruoho Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -1025,7 +1025,7 @@
if ((ci->ci_feat_val[1] & CPUID2_EST) == 0)
return 0;
- return est_bus_clock(ci);
+ return (est_bus_clock(ci) != 0) ? 1 : 0;
}
static void