diff --git a/sys/arch/x86/include/powernow.h b/sys/arch/x86/include/powernow.h index 0a2871b89968..2792206675fc 100644 --- a/sys/arch/x86/include/powernow.h +++ b/sys/arch/x86/include/powernow.h @@ -1,4 +1,4 @@ -/* $NetBSD: powernow.h,v 1.8 2007/03/18 07:21:40 xtraeme Exp $ */ +/* $NetBSD: powernow.h,v 1.9 2007/03/24 15:35:15 xtraeme Exp $ */ /*- * Copyright (c) 2004 Martin Végiard. @@ -132,11 +132,6 @@ #define ACPI_PN8_CTRL_TO_RVO(x) (((x) >> 28) & 0x03) #define ACPI_PN8_CTRL_TO_IRT(x) (((x) >> 30) & 0x03) - -#define WRITE_FIDVID(fid, vid, ctrl) \ - wrmsr(MSR_AMDK7_FIDVID_CTL, \ - (((ctrl) << 32) | (1ULL << 16) | ((vid) << 8) | (fid))) - #define POWERNOW_MAX_STATES 16 struct powernow_state { diff --git a/sys/arch/x86/x86/powernow_k8.c b/sys/arch/x86/x86/powernow_k8.c index c9935edc7b4f..4d484bb48e2c 100644 --- a/sys/arch/x86/x86/powernow_k8.c +++ b/sys/arch/x86/x86/powernow_k8.c @@ -1,4 +1,4 @@ -/* $NetBSD: powernow_k8.c,v 1.16 2007/03/21 22:52:14 xtraeme Exp $ */ +/* $NetBSD: powernow_k8.c,v 1.17 2007/03/24 15:35:15 xtraeme Exp $ */ /* $OpenBSD: powernow-k8.c,v 1.8 2006/06/16 05:58:50 gwk Exp $ */ /*- @@ -66,7 +66,7 @@ /* AMD POWERNOW K8 driver */ #include -__KERNEL_RCSID(0, "$NetBSD: powernow_k8.c,v 1.16 2007/03/21 22:52:14 xtraeme Exp $"); +__KERNEL_RCSID(0, "$NetBSD: powernow_k8.c,v 1.17 2007/03/24 15:35:15 xtraeme Exp $"); #include #include @@ -85,15 +85,9 @@ __KERNEL_RCSID(0, "$NetBSD: powernow_k8.c,v 1.16 2007/03/21 22:52:14 xtraeme Exp #include #include -/* - * Overwrite our previous WRITE_FIDVID macro with the one used by - * the msr_cpu_broadcast framework, which will work in UP and SMP. - */ -#undef WRITE_FIDVID -#define WRITE_FIDVID(fid, vid, ctrl) \ - mcb.msr_mask = ((ctrl) << 32); \ - mcb.msr_value = ((1ULL << 16) | ((vid) << 8) | (fid)); \ - mcb.msr_type = MSR_AMDK7_FIDVID_CTL; \ +#define WRITE_FIDVID(fid, vid, ctrl) \ + mcb.msr_value = (((ctrl) << 32) | (1ULL << 16) | ((vid) << 8) | (fid)); \ + mcb.msr_type = MSR_AMDK7_FIDVID_CTL; \ msr_cpu_broadcast(&mcb); #ifdef _LKM