diff options
| author | ad <ad@NetBSD.org> | 2019-12-21 13:00:20 +0000 |
|---|---|---|
| committer | ad <ad@NetBSD.org> | 2019-12-21 13:00:20 +0000 |
| commit | 95a9fc3206fd501d5cf3bd69075cf0dfcdac508f (patch) | |
| tree | 67b5ad15ec75816792165190b3b8c5bd2bf91921 /sys/compat/linux | |
| parent | e8976de24dbe093710e96e7a0772e1b27fbbe094 (diff) | |
uvmexp.free -> uvm_free()
Diffstat (limited to 'sys/compat/linux')
| -rw-r--r-- | sys/compat/linux/common/linux_misc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/compat/linux/common/linux_misc.c b/sys/compat/linux/common/linux_misc.c index 566261d0263..252405ef054 100644 --- a/sys/compat/linux/common/linux_misc.c +++ b/sys/compat/linux/common/linux_misc.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_misc.c,v 1.245 2019/09/20 15:25:19 kamil Exp $ */ +/* $NetBSD: linux_misc.c,v 1.246 2019/12/21 13:00:24 ad Exp $ */ /*- * Copyright (c) 1995, 1998, 1999, 2008 The NetBSD Foundation, Inc. @@ -57,7 +57,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_misc.c,v 1.245 2019/09/20 15:25:19 kamil Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_misc.c,v 1.246 2019/12/21 13:00:24 ad Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -1354,7 +1354,7 @@ linux_sys_sysinfo(struct lwp *l, const struct linux_sys_sysinfo_args *uap, regis si.loads[1] = la->ldavg[1] * LINUX_SYSINFO_LOADS_SCALE / la->fscale; si.loads[2] = la->ldavg[2] * LINUX_SYSINFO_LOADS_SCALE / la->fscale; si.totalram = ctob((u_long)physmem); - si.freeram = (u_long)uvmexp.free * uvmexp.pagesize; + si.freeram = (u_long)uvm_free() * uvmexp.pagesize; si.sharedram = 0; /* XXX */ si.bufferram = (u_long)uvmexp.filepages * uvmexp.pagesize; si.totalswap = (u_long)uvmexp.swpages * uvmexp.pagesize; |
