From d42fc8ad09f099e6ef849a99eb522a0dd2f44938 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Fri, 28 Oct 2005 07:03:42 +0000 Subject: update support for powernow (cool and quiet) on k7, and add support for k8. preliminary and not well tested yet. from freebsd via gordon klok. --- sys/arch/i386/include/cpu.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'sys/arch/i386/include') diff --git a/sys/arch/i386/include/cpu.h b/sys/arch/i386/include/cpu.h index 6b963f4dbeb..46080abc651 100644 --- a/sys/arch/i386/include/cpu.h +++ b/sys/arch/i386/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.71 2005/09/25 20:48:23 miod Exp $ */ +/* $OpenBSD: cpu.h,v 1.72 2005/10/28 07:03:41 tedu Exp $ */ /* $NetBSD: cpu.h,v 1.35 1996/05/05 19:29:26 christos Exp $ */ /*- @@ -369,11 +369,17 @@ void p4tcc_init(int, int); int p4tcc_setperf(int); #endif +#if !defined(SMALL_KERNEL) && defined(I686_CPU) +/* powernow.c */ void k6_powernow_init(void); int k6_powernow_setperf(int); -void k7_powernow_init(uint32_t); +/* powernow-k7.c */ +void k7_powernow_init(void); int k7_powernow_setperf(int); - +/* powernow-k8.c */ +void k8_powernow_init(void); +int k8_powernow_setperf(int); +#endif /* npx.c */ void npxdrop(struct proc *); -- cgit v1.2.3