Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Jan 2017 03:13:45 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r311352 - head/sys/vm
Message-ID:  <201701050313.v053DjVg045548@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701050313.v053DjVg045548>