Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/common use cpu_getmodel() to get the model name



details:   https://anonhg.NetBSD.org/src/rev/c54c685864ee
branches:  trunk
changeset: 328052:c54c685864ee
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Mar 24 20:08:08 2014 +0000

description:
use cpu_getmodel() to get the model name

diffstat:

 sys/compat/common/kern_info_43.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r f25973eabc2c -r c54c685864ee sys/compat/common/kern_info_43.c
--- a/sys/compat/common/kern_info_43.c  Mon Mar 24 20:07:40 2014 +0000
+++ b/sys/compat/common/kern_info_43.c  Mon Mar 24 20:08:08 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_info_43.c,v 1.34 2009/01/11 02:45:46 christos Exp $       */
+/*     $NetBSD: kern_info_43.c,v 1.35 2014/03/24 20:08:08 christos Exp $       */
 
 /*
  * Copyright (c) 1982, 1986, 1991, 1993
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_info_43.c,v 1.34 2009/01/11 02:45:46 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_info_43.c,v 1.35 2014/03/24 20:08:08 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -50,6 +50,7 @@
 #include <sys/unistd.h>
 #include <sys/resourcevar.h>
 #include <sys/kauth.h>
+#include <sys/cpu.h>
 
 #include <uvm/uvm_extern.h>
 #include <sys/sysctl.h>
@@ -220,6 +221,7 @@
                            (struct bsdi_si *) SCARG(uap, where);
                        struct bsdi_si ksi;
                        struct timeval tv;
+                       const char *cpu_model = cpu_getmodel();
                        char *us = (char *) &usi[1];
 
                        if (usi == NULL) {



Home | Main Index | Thread Index | Old Index