Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys remove unnecessary #ifdef
details: https://anonhg.NetBSD.org/src/rev/b8f45dbc6a8d
branches: trunk
changeset: 754758:b8f45dbc6a8d
user: pooka <pooka%NetBSD.org@localhost>
date: Tue May 11 20:21:56 2010 +0000
description:
remove unnecessary #ifdef
diffstat:
sys/kern/uipc_mbuf.c | 6 +++---
sys/rump/librump/rumpkern/emul.c | 5 +++--
2 files changed, 6 insertions(+), 5 deletions(-)
diffs (53 lines):
diff -r 06b1a978dd99 -r b8f45dbc6a8d sys/kern/uipc_mbuf.c
--- a/sys/kern/uipc_mbuf.c Tue May 11 20:11:47 2010 +0000
+++ b/sys/kern/uipc_mbuf.c Tue May 11 20:21:56 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uipc_mbuf.c,v 1.135 2010/04/16 02:57:15 rmind Exp $ */
+/* $NetBSD: uipc_mbuf.c,v 1.136 2010/05/11 20:21:56 pooka Exp $ */
/*-
* Copyright (c) 1999, 2001 The NetBSD Foundation, Inc.
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_mbuf.c,v 1.135 2010/04/16 02:57:15 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_mbuf.c,v 1.136 2010/05/11 20:21:56 pooka Exp $");
#include "opt_mbuftrace.h"
#include "opt_nmbclusters.h"
@@ -153,7 +153,7 @@
static int
nmbclusters_limit(void)
{
-#if defined(PMAP_MAP_POOLPAGE) || defined(_RUMPKERNEL)
+#if defined(PMAP_MAP_POOLPAGE)
/* direct mapping, doesn't use space in kmem_map */
vsize_t max_size = physmem / 4;
#else
diff -r 06b1a978dd99 -r b8f45dbc6a8d sys/rump/librump/rumpkern/emul.c
--- a/sys/rump/librump/rumpkern/emul.c Tue May 11 20:11:47 2010 +0000
+++ b/sys/rump/librump/rumpkern/emul.c Tue May 11 20:21:56 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: emul.c,v 1.135 2010/05/01 09:00:06 pooka Exp $ */
+/* $NetBSD: emul.c,v 1.136 2010/05/11 20:21:56 pooka Exp $ */
/*
* Copyright (c) 2007 Antti Kantee. All Rights Reserved.
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: emul.c,v 1.135 2010/05/01 09:00:06 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: emul.c,v 1.136 2010/05/11 20:21:56 pooka Exp $");
#include <sys/param.h>
#include <sys/null.h>
@@ -67,6 +67,7 @@
struct vnode *rootvp;
dev_t rootdev = NODEV;
int physmem = 256*256; /* 256 * 1024*1024 / 4k, PAGE_SIZE not always set */
+int nkmempages = 256*256/2; /* 256 * 1024*1024 / 4k, PAGE_SIZE not always set */
const int schedppq = 1;
int hardclock_ticks;
bool mp_online = false;
Home |
Main Index |
Thread Index |
Old Index