Garbage-collect cpu_sysctl(). From Shin'ichiro TAYA in PR-17888.
This commit is contained in:
parent
0cb9a97393
commit
91b47fddbb
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.37 2002/01/13 23:02:33 augustss Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.38 2002/08/09 05:10:45 gmcgarry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000 Soren S. Jorvang. All rights reserved.
|
||||
@ -77,9 +77,7 @@
|
||||
#endif
|
||||
|
||||
/* For sysctl. */
|
||||
char machine[] = MACHINE;
|
||||
char machine_arch[] = MACHINE_ARCH;
|
||||
char cpu_model[] = "Cobalt Microserver";
|
||||
extern char cpu_model[];
|
||||
|
||||
/* Our exported CPU info; we can have only one. */
|
||||
struct cpu_info cpu_info_store;
|
||||
@ -185,6 +183,8 @@ mach_init(memsize)
|
||||
kgdb_connect(0);
|
||||
#endif
|
||||
|
||||
strcpy(cpu_model, "Cobalt Microserver");
|
||||
|
||||
/*
|
||||
* Load the rest of the available pages into the VM system.
|
||||
*/
|
||||
@ -315,26 +315,6 @@ cpu_startup()
|
||||
bufinit();
|
||||
}
|
||||
|
||||
int
|
||||
cpu_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
|
||||
int *name;
|
||||
u_int namelen;
|
||||
void *oldp;
|
||||
size_t *oldlenp;
|
||||
void *newp;
|
||||
size_t newlen;
|
||||
struct proc *p;
|
||||
{
|
||||
/* All sysctl names at this level are terminal. */
|
||||
if (namelen != 1)
|
||||
return ENOTDIR;
|
||||
|
||||
switch (name[0]) {
|
||||
default:
|
||||
return EOPNOTSUPP;
|
||||
}
|
||||
}
|
||||
|
||||
int waittime = -1;
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user