diff options
author | Alexander Yurchenko <grange@cvs.openbsd.org> | 2004-02-14 15:09:23 +0000 |
---|---|---|
committer | Alexander Yurchenko <grange@cvs.openbsd.org> | 2004-02-14 15:09:23 +0000 |
commit | ada8886100a78040c259db734cf7818b49c81fdc (patch) | |
tree | fd6c08ced5d0defd52f55f0689aca67fb6fc5c8a /sys/arch/hppa | |
parent | 64cb8174cb06ff3dc1a2b319a1dbc1fa94832a87 (diff) |
Simplify hw.{cpuspeed,setperf} api moving all the sysctl stuff
from the underlying callbacks.
Testing hppa mickey@, ppc drahn@
Ok markus@ tedu@
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r-- | sys/arch/hppa/hppa/machdep.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/hppa/hppa/machdep.c b/sys/arch/hppa/hppa/machdep.c index 38372504da5..f7a6d1bb5f4 100644 --- a/sys/arch/hppa/hppa/machdep.c +++ b/sys/arch/hppa/hppa/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.123 2004/01/05 17:07:00 mickey Exp $ */ +/* $OpenBSD: machdep.c,v 1.124 2004/02/14 15:09:22 grange Exp $ */ /* * Copyright (c) 1999-2002 Michael Shalayeff @@ -276,11 +276,11 @@ const struct hppa_cpu_typed { }; int -hppa_cpuspeed(void *oldp, size_t *oldlenp, void *newp, size_t newlen) +hppa_cpuspeed(int *mhz) { - int mhz = PAGE0->mem_10msec / 10000; + *mhz = PAGE0->mem_10msec / 10000; - return sysctl_rdint(oldp, oldlenp, newp, mhz); + return (0); } void |