summaryrefslogtreecommitdiffstats
path: root/sys/sys/gmon.h
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-05-14 03:00:10 +0000
committerdg <dg@FreeBSD.org>1995-05-14 03:00:10 +0000
commitb649d7b9c7fc4e854447610d77a8f589d6d879df (patch)
treee3f8adb9c567dce966929b13f5ef9bc8016008d6 /sys/sys/gmon.h
parent8f5311b61712fdd904658b7a56c5832f71bffcab (diff)
downloadFreeBSD-src-b649d7b9c7fc4e854447610d77a8f589d6d879df.zip
FreeBSD-src-b649d7b9c7fc4e854447610d77a8f589d6d879df.tar.gz
Changed swap partition handling/allocation so that it doesn't
require specific partitions be mentioned in the kernel config file ("swap on foo" is now obsolete). From Poul-Henning: The visible effect is this: As default, unless options "NSWAPDEV=23" is in your config, you will have four swap-devices. You can swapon(2) any block device you feel like, it doesn't have to be in the kernel config. There is a performance/resource win available by getting the NSWAPDEV right (but only if you have just one swap-device ??), but using that as default would be too restrictive. The invisible effect is that: Swap-handling disappears from the $arch part of the kernel. It gets a lot simpler (-145 lines) and cleaner. Reviewed by: John Dyson, David Greenman Submitted by: Poul-Henning Kamp, with minor changes by me.
Diffstat (limited to 'sys/sys/gmon.h')
-rw-r--r--sys/sys/gmon.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/sys/gmon.h b/sys/sys/gmon.h
index b2526cde..471694d 100644
--- a/sys/sys/gmon.h
+++ b/sys/sys/gmon.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)gmon.h 8.2 (Berkeley) 1/4/94
- * $Id: gmon.h,v 1.3 1995/01/29 06:23:34 bde Exp $
+ * $Id: gmon.h,v 1.4 1995/03/16 18:16:17 bde Exp $
*/
#ifndef _SYS_GMON_H_
@@ -124,8 +124,8 @@ struct rawarc {
/*
* general rounding functions.
*/
-#define ROUNDDOWN(x,y) (((x)/(y))*(y))
-#define ROUNDUP(x,y) ((((x)+(y)-1)/(y))*(y))
+#define ROUNDDOWN(x,y) rounddown(x,y)
+#define ROUNDUP(x,y) roundup(x,y)
/*
* The profiling data structures are housed in this structure.
OpenPOWER on IntegriCloud