Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/x86/x86 Do not return the bus clock directly in the...



details:   https://anonhg.NetBSD.org/src/rev/c9ea74a0a03d
branches:  trunk
changeset: 762632:c9ea74a0a03d
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Thu Feb 24 15:47:59 2011 +0000

description:
Do not return the bus clock directly in the match() function.

diffstat:

 sys/arch/x86/x86/est.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 889e54330358 -r c9ea74a0a03d sys/arch/x86/x86/est.c
--- a/sys/arch/x86/x86/est.c    Thu Feb 24 15:42:17 2011 +0000
+++ b/sys/arch/x86/x86/est.c    Thu Feb 24 15:47:59 2011 +0000
@@ -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



Home | Main Index | Thread Index | Old Index