summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_misc.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2011-06-05 19:41:04 +0000
committerderaadt <deraadt@openbsd.org>2011-06-05 19:41:04 +0000
commitf46f5a9008c12965427302b104ee94bcd5d82d66 (patch)
tree8720f0cebe58539de1f078557a75eb3dddd003e1 /sys/compat/linux/linux_misc.c
parentreduce unneccessary differences; ok kettenis (diff)
downloadwireguard-openbsd-f46f5a9008c12965427302b104ee94bcd5d82d66.tar.xz
wireguard-openbsd-f46f5a9008c12965427302b104ee94bcd5d82d66.zip
Move the bufcachepercent setting code to MI locations -- set it to 42%
for now; that is unlikely to hit some of the remaining starvation bugs. Repair the bufpages calculation too; i386 was doing it ahead of time (incorrectly) and then re-calculating it. ok thib
Diffstat (limited to 'sys/compat/linux/linux_misc.c')
-rw-r--r--sys/compat/linux/linux_misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c
index aa4c3746596..b6eb3c6f7c7 100644
--- a/sys/compat/linux/linux_misc.c
+++ b/sys/compat/linux/linux_misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_misc.c,v 1.67 2011/04/05 15:36:09 pirofti Exp $ */
+/* $OpenBSD: linux_misc.c,v 1.68 2011/06/05 19:41:09 deraadt Exp $ */
/* $NetBSD: linux_misc.c,v 1.27 1996/05/20 01:59:21 fvdl Exp $ */
/*-
@@ -1451,7 +1451,7 @@ linux_sys_sysinfo(p, v, retval)
} */ *uap = v;
struct linux_sysinfo si;
struct loadavg *la;
- extern int bufpages;
+ extern long bufpages;
struct timeval tv;
getmicrouptime(&tv);