From 4c6e4fcf9ba42eb458822b6c2dcdfafb44800466 Mon Sep 17 00:00:00 2001 From: xtraeme Date: Sun, 18 Mar 2007 07:28:37 +0000 Subject: [PATCH] Sync with est.c, est_init does not take any argument now. Just use curcpu(). --- sys/lkm/arch/i386/powernow/lkminit_powernow.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/lkm/arch/i386/powernow/lkminit_powernow.c b/sys/lkm/arch/i386/powernow/lkminit_powernow.c index 8f63ed8aaa10..e443ea4829e5 100644 --- a/sys/lkm/arch/i386/powernow/lkminit_powernow.c +++ b/sys/lkm/arch/i386/powernow/lkminit_powernow.c @@ -1,4 +1,4 @@ -/* $NetBSD: lkminit_powernow.c,v 1.9 2007/03/18 04:41:03 xtraeme Exp $ */ +/* $NetBSD: lkminit_powernow.c,v 1.10 2007/03/18 07:28:37 xtraeme Exp $ */ /* * Derived from: @@ -37,7 +37,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: lkminit_powernow.c,v 1.9 2007/03/18 04:41:03 xtraeme Exp $"); +__KERNEL_RCSID(0, "$NetBSD: lkminit_powernow.c,v 1.10 2007/03/18 07:28:37 xtraeme Exp $"); #include #include @@ -76,12 +76,12 @@ powernow_mod_handle(struct lkm_table *lkmtp, int cmd) if (lkmexists(lkmtp)) return EEXIST; - if (powernow_probe(ci)) { - pn_family = CPUID2FAMILY(ci->ci_signature); + if (powernow_probe(curcpu())) { + pn_family = CPUID2FAMILY(curcpu()->ci_signature); if (pn_family == 6) k7_powernow_init(); else if (pn_family == 15) - k8_powernow_init(curcpu()); + k8_powernow_init(); else err = ENODEV; } else