summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/arch/i386/i386/est.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/est.c b/sys/arch/i386/i386/est.c
index d17f03e03eb..0c0cdee9173 100644
--- a/sys/arch/i386/i386/est.c
+++ b/sys/arch/i386/i386/est.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: est.c,v 1.9 2004/07/16 18:14:23 deraadt Exp $ */
+/* $OpenBSD: est.c,v 1.10 2004/10/05 02:13:41 tedu Exp $ */
/*
* Copyright (c) 2003 Michael Eriksson.
* All rights reserved.
@@ -258,6 +258,7 @@ static const struct est_cpu est_cpus[] = {
static const struct fqlist *est_fqlist;
extern int setperf_prio;
+extern int perflevel;
void
est_init(const char *cpu_device)
@@ -268,6 +269,7 @@ est_init(const char *cpu_device)
char *tag;
const struct fqlist *fql;
extern char cpu_brandstr[];
+ int low, high;
if (setperf_prio > 3)
return;
@@ -316,6 +318,9 @@ est_init(const char *cpu_device)
printf(" (not in table)\n");
return;
}
+ low = est_fqlist->table[est_fqlist->n - 1].mhz;
+ high = est_fqlist->table[0].mhz;
+ perflevel = (mhz - low) * 100 / (high - low);
/*
* OK, tell the user the available frequencies.