Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/x86 Change the SVS node, from machdep.svs_enabl...



details:   https://anonhg.NetBSD.org/src/rev/a2e7a5144906
branches:  trunk
changeset: 830041:a2e7a5144906
user:      maxv <maxv%NetBSD.org@localhost>
date:      Fri Feb 23 09:57:20 2018 +0000

description:
Change the SVS node, from machdep.svs_enabled to machdep.svs.enabled.

diffstat:

 sys/arch/x86/x86/x86_machdep.c |  16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diffs (40 lines):

diff -r 42f213e0ec9d -r a2e7a5144906 sys/arch/x86/x86/x86_machdep.c
--- a/sys/arch/x86/x86/x86_machdep.c    Fri Feb 23 09:00:55 2018 +0000
+++ b/sys/arch/x86/x86/x86_machdep.c    Fri Feb 23 09:57:20 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: x86_machdep.c,v 1.107 2018/02/22 13:27:18 maxv Exp $   */
+/*     $NetBSD: x86_machdep.c,v 1.108 2018/02/23 09:57:20 maxv Exp $   */
 
 /*-
  * Copyright (c) 2002, 2006, 2007 YAMAMOTO Takashi,
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: x86_machdep.c,v 1.107 2018/02/22 13:27:18 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: x86_machdep.c,v 1.108 2018/02/23 09:57:20 maxv Exp $");
 
 #include "opt_modular.h"
 #include "opt_physmem.h"
@@ -1257,12 +1257,18 @@
 #endif
 #ifdef SVS
        int sysctl_machdep_svs_enabled(SYSCTLFN_ARGS);
-       sysctl_createv(clog, 0, NULL, NULL,
+       const struct sysctlnode *rnode = NULL;
+       sysctl_createv(clog, 0, NULL, &rnode,
+                      CTLFLAG_PERMANENT,
+                      CTLTYPE_NODE, "svs", NULL,
+                      NULL, 0, NULL, 0,
+                      CTL_MACHDEP, CTL_CREATE);
+       sysctl_createv(clog, 0, &rnode, &rnode,
                       CTLFLAG_READWRITE,
-                      CTLTYPE_BOOL, "svs_enabled",
+                      CTLTYPE_BOOL, "enabled",
                       SYSCTL_DESCR("Whether the kernel uses SVS"),
                       sysctl_machdep_svs_enabled, 0, &svs_enabled, 0,
-                      CTL_MACHDEP, CTL_CREATE, CTL_EOL);
+                      CTL_CREATE, CTL_EOL);
 #endif
 
        /* None of these can ever change once the system has booted */



Home | Main Index | Thread Index | Old Index