From 02b8664712e30327f8ff4d93a4427aafeb9923e8 Mon Sep 17 00:00:00 2001 From: Gordon Willem Klok Date: Mon, 27 Nov 2006 18:43:31 +0000 Subject: 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@ --- sys/arch/macppc/macppc/cpu.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'sys/arch') 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); -- cgit v1.2.3