Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/modules/luasystm use cpu_getmodel()
details: https://anonhg.NetBSD.org/src/rev/1fe6b00258fd
branches: trunk
changeset: 328053:1fe6b00258fd
user: christos <christos%NetBSD.org@localhost>
date: Mon Mar 24 20:21:02 2014 +0000
description:
use cpu_getmodel()
diffstat:
sys/modules/luasystm/luasystm.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r c54c685864ee -r 1fe6b00258fd sys/modules/luasystm/luasystm.c
--- a/sys/modules/luasystm/luasystm.c Mon Mar 24 20:08:08 2014 +0000
+++ b/sys/modules/luasystm/luasystm.c Mon Mar 24 20:21:02 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: luasystm.c,v 1.1 2013/12/17 00:02:22 lneto Exp $ */
+/* $NetBSD: luasystm.c,v 1.2 2014/03/24 20:21:02 christos Exp $ */
/*
* Copyright (c) 2011, 2013 Marc Balmer <mbalmer%NetBSD.org@localhost>.
@@ -33,6 +33,7 @@
#include <sys/param.h>
#include <sys/lua.h>
#include <sys/callout.h>
+#include <sys/cpu.h>
#ifdef _MODULE
#include <sys/module.h>
#endif
@@ -187,7 +188,7 @@
/* some string values */
lua_pushstring(L, copyright);
lua_setfield(L, -2, "copyright");
- lua_pushstring(L, cpu_model);
+ lua_pushstring(L, cpu_getmodel());
lua_setfield(L, -2, "cpu_model");
lua_pushstring(L, machine);
lua_setfield(L, -2, "machine");
Home |
Main Index |
Thread Index |
Old Index