Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/cobalt/cobalt Garbage-collect cpu_sysctl(). From S...



details:   https://anonhg.NetBSD.org/src/rev/0132dbd4b425
branches:  trunk
changeset: 535053:0132dbd4b425
user:      gmcgarry <gmcgarry%NetBSD.org@localhost>
date:      Fri Aug 09 05:10:45 2002 +0000

description:
Garbage-collect cpu_sysctl().  From Shin'ichiro TAYA in PR-17888.

diffstat:

 sys/arch/cobalt/cobalt/machdep.c |  28 ++++------------------------
 1 files changed, 4 insertions(+), 24 deletions(-)

diffs (56 lines):

diff -r b141eae676b5 -r 0132dbd4b425 sys/arch/cobalt/cobalt/machdep.c
--- a/sys/arch/cobalt/cobalt/machdep.c  Fri Aug 09 04:29:29 2002 +0000
+++ b/sys/arch/cobalt/cobalt/machdep.c  Fri Aug 09 05:10:45 2002 +0000
@@ -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 @@
                 kgdb_connect(0);
 #endif    
 
+       strcpy(cpu_model, "Cobalt Microserver");
+
        /*
         * Load the rest of the available pages into the VM system.
         */
@@ -315,26 +315,6 @@
        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



Home | Main Index | Thread Index | Old Index