summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorGordon Willem Klok <gwk@cvs.openbsd.org>2006-11-27 18:43:31 +0000
committerGordon Willem Klok <gwk@cvs.openbsd.org>2006-11-27 18:43:31 +0000
commit02b8664712e30327f8ff4d93a4427aafeb9923e8 (patch)
treee76996487d0a79f82c892b265e906d3a27b1bc0b /sys/arch
parent7e177a786bb321be1c7f03e7805dc1139b9339c0 (diff)
For the G5 processor setperf function, don't force perflevel to 50 or 100
perserve the illusion of a much finer granularity of performance control. ok kettenis@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/macppc/macppc/cpu.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/arch/macppc/macppc/cpu.c b/sys/arch/macppc/macppc/cpu.c
index 6141aaa83b2..f301a340b2e 100644
--- a/sys/arch/macppc/macppc/cpu.c
+++ b/sys/arch/macppc/macppc/cpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.c,v 1.36 2006/02/10 21:31:04 kettenis Exp $ */
+/* $OpenBSD: cpu.c,v 1.37 2006/11/27 18:43:30 gwk Exp $ */
/*
* Copyright (c) 1997 Per Fogelstrom
@@ -96,10 +96,7 @@ int ppc64_setperf(int);
void config_l2cr(int);
int
-cpumatch(parent, cfdata, aux)
- struct device *parent;
- void *cfdata;
- void *aux;
+cpumatch(struct device *parent, void *cfdata, void *aux)
{
struct confargs *ca = aux;
@@ -173,7 +170,6 @@ ppc64_setperf(int speed)
ppc64_scale_frequency(FREQ_HALF);
if (ppc64_slew_voltage)
ppc64_slew_voltage(FREQ_HALF);
- perflevel = 50;
} else {
if (ppc_curfreq == ppc_maxfreq)
return (0);
@@ -181,7 +177,6 @@ ppc64_setperf(int speed)
if (ppc64_slew_voltage)
ppc64_slew_voltage(FREQ_FULL);
ppc64_scale_frequency(FREQ_FULL);
- perflevel = 100;
}
return (0);