aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/gmon.h
diff options
context:
space:
mode:
authorDavid Greenman <dg@FreeBSD.org>1995-05-14 03:00:10 +0000
committerDavid Greenman <dg@FreeBSD.org>1995-05-14 03:00:10 +0000
commita401ebbe32ec6460ae3d192e6e104efaf65d54a1 (patch)
treee3f8adb9c567dce966929b13f5ef9bc8016008d6 /sys/sys/gmon.h
parentaf9fe6e59db374e81a2a8ea010a356bba7e77bb8 (diff)
downloadsrc-a401ebbe32ec6460ae3d192e6e104efaf65d54a1.tar.gz
src-a401ebbe32ec6460ae3d192e6e104efaf65d54a1.zip
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.
Notes
Notes: svn path=/head/; revision=8504
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 b2526cded509..471694d5d820 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.