From e1996cb9609d2e55a26ee78dddbfce4ba4073b53 Mon Sep 17 00:00:00 2001 From: jeff Date: Fri, 18 May 2007 07:10:50 +0000 Subject: - define and use VMCNT_{GET,SET,ADD,SUB,PTR} macros for manipulating vmcnts. This can be used to abstract away pcpu details but also changes to use atomics for all counters now. This means sched lock is no longer responsible for protecting counts in the switch routines. Contributed by: Attilio Rao --- sys/kern/kern_mib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/kern/kern_mib.c') diff --git a/sys/kern/kern_mib.c b/sys/kern/kern_mib.c index 97acaae..707afd8 100644 --- a/sys/kern/kern_mib.c +++ b/sys/kern/kern_mib.c @@ -177,7 +177,7 @@ sysctl_hw_usermem(SYSCTL_HANDLER_ARGS) { u_long val; - val = ctob(physmem - cnt.v_wire_count); + val = ctob(physmem - VMCNT_GET(wire_count)); return (sysctl_handle_long(oidp, &val, 0, req)); } -- cgit v1.1