Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm now that CTLTYPE_BOOL actually works, use it to expo...
details: https://anonhg.NetBSD.org/src/rev/7773b0b9eff9
branches: trunk
changeset: 753814:7773b0b9eff9
user: mrg <mrg%NetBSD.org@localhost>
date: Sun Apr 11 01:53:03 2010 +0000
description:
now that CTLTYPE_BOOL actually works, use it to export vm_page_zero_enable
as vm.idlezero in a way that actually works on big endian systems.
diffstat:
sys/uvm/uvm_meter.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 6d3897f2eeb7 -r 7773b0b9eff9 sys/uvm/uvm_meter.c
--- a/sys/uvm/uvm_meter.c Sun Apr 11 01:52:10 2010 +0000
+++ b/sys/uvm/uvm_meter.c Sun Apr 11 01:53:03 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_meter.c,v 1.50 2009/10/21 21:12:07 rmind Exp $ */
+/* $NetBSD: uvm_meter.c,v 1.51 2010/04/11 01:53:03 mrg Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_meter.c,v 1.50 2009/10/21 21:12:07 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_meter.c,v 1.51 2010/04/11 01:53:03 mrg Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -337,7 +337,7 @@
CTL_VM, VM_USPACE, CTL_EOL);
sysctl_createv(clog, 0, NULL, NULL,
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
- CTLTYPE_INT, "idlezero",
+ CTLTYPE_BOOL, "idlezero",
SYSCTL_DESCR("Whether try to zero pages in idle loop"),
NULL, 0, &vm_page_zero_enable, 0,
CTL_VM, CTL_CREATE, CTL_EOL);
Home |
Main Index |
Thread Index |
Old Index