Sync with est.c, est_init does not take any argument now. Just use
curcpu().
This commit is contained in:
parent
3599c78870
commit
4c6e4fcf9b
|
@ -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:
|
* Derived from:
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__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 <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
|
@ -76,12 +76,12 @@ powernow_mod_handle(struct lkm_table *lkmtp, int cmd)
|
||||||
if (lkmexists(lkmtp))
|
if (lkmexists(lkmtp))
|
||||||
return EEXIST;
|
return EEXIST;
|
||||||
|
|
||||||
if (powernow_probe(ci)) {
|
if (powernow_probe(curcpu())) {
|
||||||
pn_family = CPUID2FAMILY(ci->ci_signature);
|
pn_family = CPUID2FAMILY(curcpu()->ci_signature);
|
||||||
if (pn_family == 6)
|
if (pn_family == 6)
|
||||||
k7_powernow_init();
|
k7_powernow_init();
|
||||||
else if (pn_family == 15)
|
else if (pn_family == 15)
|
||||||
k8_powernow_init(curcpu());
|
k8_powernow_init();
|
||||||
else
|
else
|
||||||
err = ENODEV;
|
err = ENODEV;
|
||||||
} else
|
} else
|
||||||
|
|
Loading…
Reference in New Issue