Sync with sys/i386/i386/machdep.c revision 1.356.
This commit is contained in:
parent
694799ed1d
commit
c75eae3a3e
@ -35,7 +35,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
|
||||
* $Id: machdep.c,v 1.125 1999/07/08 12:48:53 kato Exp $
|
||||
* $Id: machdep.c,v 1.126 1999/07/09 12:51:11 kato Exp $
|
||||
*/
|
||||
|
||||
#include "apm.h"
|
||||
@ -359,10 +359,10 @@ again:
|
||||
|
||||
if (nbuf == 0) {
|
||||
nbuf = 30;
|
||||
if( physmem > 1024)
|
||||
if (physmem > 1024)
|
||||
nbuf += min((physmem - 1024) / 8, 2048);
|
||||
if( physmem > 65536)
|
||||
nbuf += (physmem - 65536) / 20;
|
||||
if (physmem > 16384)
|
||||
nbuf += (physmem - 16384) / 20;
|
||||
}
|
||||
nswbuf = max(min(nbuf/4, 256), 16);
|
||||
|
||||
|
@ -35,7 +35,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
|
||||
* $Id: machdep.c,v 1.125 1999/07/08 12:48:53 kato Exp $
|
||||
* $Id: machdep.c,v 1.126 1999/07/09 12:51:11 kato Exp $
|
||||
*/
|
||||
|
||||
#include "apm.h"
|
||||
@ -359,10 +359,10 @@ again:
|
||||
|
||||
if (nbuf == 0) {
|
||||
nbuf = 30;
|
||||
if( physmem > 1024)
|
||||
if (physmem > 1024)
|
||||
nbuf += min((physmem - 1024) / 8, 2048);
|
||||
if( physmem > 65536)
|
||||
nbuf += (physmem - 65536) / 20;
|
||||
if (physmem > 16384)
|
||||
nbuf += (physmem - 16384) / 20;
|
||||
}
|
||||
nswbuf = max(min(nbuf/4, 256), 16);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user