diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2020-07-06 04:32:26 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2020-07-06 04:32:26 +0000 |
commit | 825c6ff98ec37217cd5feac78bfa98fe92fe2120 (patch) | |
tree | 7cd5557ef6eb4d01c63110b387e4f1dd0ca4357f /sys/arch/sparc64 | |
parent | a23b776753af9f09b5db785f1c0fb341939db224 (diff) |
wire up kstat(4)
"looks right" deraadt@
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r-- | sys/arch/sparc64/sparc64/conf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/sparc64/sparc64/conf.c b/sys/arch/sparc64/sparc64/conf.c index fcb23b6c5cc..49c31ac84c3 100644 --- a/sys/arch/sparc64/sparc64/conf.c +++ b/sys/arch/sparc64/sparc64/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.83 2020/01/23 02:40:22 dlg Exp $ */ +/* $OpenBSD: conf.c,v 1.84 2020/07/06 04:32:25 dlg Exp $ */ /* $NetBSD: conf.c,v 1.17 2001/03/26 12:33:26 lukem Exp $ */ /* @@ -112,6 +112,7 @@ cdev_decl(pci); #include "pf.h" #include "ksyms.h" +#include "kstat.h" #include "hotplug.h" #include "vscsi.h" @@ -203,7 +204,7 @@ struct cdevsw cdevsw[] = cdev_notdef(), /* 48 */ cdev_notdef(), /* 49 */ cdev_notdef(), /* 50 */ - cdev_notdef(), /* 51 */ + cdev_kstat_init(NKSTAT,kstat), /* 51: kernel statistics */ #ifdef USER_PCICONF cdev_pci_init(NPCI,pci), /* 52: PCI user */ #else |