Do not attach this driver if idhi and idlo are the same frequency,

I've seen that in some Intel Core Duo CPUs.
This commit is contained in:
xtraeme 2007-01-20 20:24:13 +00:00
parent 614a7d1ec6
commit dade97a1c0
1 changed files with 9 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: est.c,v 1.31 2006/11/29 15:53:42 drochner Exp $ */
/* $NetBSD: est.c,v 1.32 2007/01/20 20:24:13 xtraeme Exp $ */
/*
* Copyright (c) 2003 Michael Eriksson.
* All rights reserved.
@ -86,7 +86,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: est.c,v 1.31 2006/11/29 15:53:42 drochner Exp $");
__KERNEL_RCSID(0, "$NetBSD: est.c,v 1.32 2007/01/20 20:24:13 xtraeme Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -937,6 +937,13 @@ est_init(struct cpu_info *ci, int vendor)
if (est_fqlist == NULL) {
aprint_normal("%s: unknown Enhanced SpeedStep CPU.\n",
cpuname);
/*
* Some CPUs report the same frequency in idhi and idlo,
* so do not run est on them.
*/
if (idhi == idlo)
return;
/*
* Generate a fake table with the power states we know.
*/