Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jun 2010 00:27:20 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r209492 - head/sys/kern
Message-ID:  <201006240027.o5O0RKUV025284@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nwhitehorn
Date: Thu Jun 24 00:27:20 2010
New Revision: 209492
URL: http://svn.freebsd.org/changeset/base/209492

Log:
  Reverse the logic of the if statement that sets the default value of
  HZ; the list of 1000 Hz platforms was getting unwieldy.
  
  Suggested by:	marcel

Modified:
  head/sys/kern/subr_param.c

Modified: head/sys/kern/subr_param.c
==============================================================================
--- head/sys/kern/subr_param.c	Wed Jun 23 23:34:56 2010	(r209491)
+++ head/sys/kern/subr_param.c	Thu Jun 24 00:27:20 2010	(r209492)
@@ -53,10 +53,10 @@ __FBSDID("$FreeBSD$");
  */
 
 #ifndef HZ
-#  if defined(__amd64__) || defined(__i386__) || defined(__ia64__) || defined(__sparc64__) || defined(__powerpc__)
-#    define	HZ 1000
-#  else
+#  if defined(__mips__) || defined(__arm__)
 #    define	HZ 100
+#  else
+#    define	HZ 1000
 #  endif
 #  ifndef HZ_VM
 #    define	HZ_VM 100



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