svn commit: r311352 - head/sys/vm

Mark Johnston markj at FreeBSD.org
Thu Jan 5 03:13:46 UTC 2017


Author: markj
Date: Thu Jan  5 03:13:45 2017
New Revision: 311352
URL: https://svnweb.freebsd.org/changeset/base/311352

Log:
  Remove a redundant use of min().
  
  Reported by:	rpokala
  X-MFC With:	r311346

Modified:
  head/sys/vm/vm_init.c

Modified: head/sys/vm/vm_init.c
==============================================================================
--- head/sys/vm/vm_init.c	Thu Jan  5 03:08:57 2017	(r311351)
+++ head/sys/vm/vm_init.c	Thu Jan  5 03:13:45 2017	(r311352)
@@ -67,7 +67,6 @@ __FBSDID("$FreeBSD$");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
-#include <sys/libkern.h>
 #include <sys/lock.h>
 #include <sys/proc.h>
 #include <sys/rwlock.h>
@@ -276,7 +275,7 @@ again:
 #ifdef __LP64__
 	exec_map_entries = 8 * mp_ncpus;
 #else
-	exec_map_entries = min(8 * mp_ncpus, 2 * mp_ncpus + 4);
+	exec_map_entries = 2 * mp_ncpus + 4;
 #endif
 	exec_map_entry_size = round_page(PATH_MAX + ARG_MAX);
 	exec_map = kmem_suballoc(kernel_map, &minaddr, &maxaddr,


More information about the svn-src-head mailing list