Module Name:    src
Committed By:   christos
Date:           Mon Mar 24 20:08:08 UTC 2014

Modified Files:
        src/sys/compat/common: kern_info_43.c

Log Message:
use cpu_getmodel() to get the model name


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/sys/compat/common/kern_info_43.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/common/kern_info_43.c
diff -u src/sys/compat/common/kern_info_43.c:1.34 src/sys/compat/common/kern_info_43.c:1.35
--- src/sys/compat/common/kern_info_43.c:1.34	Sat Jan 10 21:45:46 2009
+++ src/sys/compat/common/kern_info_43.c	Mon Mar 24 16:08:08 2014
@@ -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 @@ __KERNEL_RCSID(0, "$NetBSD: kern_info_43
 #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 @@ compat_43_sys_getkerninfo(struct lwp *l,
 			    (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) {

Reply via email to