Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Use PR_SLOWHZ, PR_FASTHZ defines in a couple spots.



details:   https://anonhg.NetBSD.org/src/rev/619200ce13eb
branches:  trunk
changeset: 770650:619200ce13eb
user:      seanb <seanb%NetBSD.org@localhost>
date:      Thu Oct 27 21:10:55 2011 +0000

description:
Use PR_SLOWHZ, PR_FASTHZ defines in a couple spots.

diffstat:

 sys/kern/uipc_domain.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r 4c3a75827d38 -r 619200ce13eb sys/kern/uipc_domain.c
--- a/sys/kern/uipc_domain.c    Thu Oct 27 20:18:54 2011 +0000
+++ b/sys/kern/uipc_domain.c    Thu Oct 27 21:10:55 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uipc_domain.c,v 1.86 2011/05/29 03:32:46 manu Exp $    */
+/*     $NetBSD: uipc_domain.c,v 1.87 2011/10/27 21:10:55 seanb Exp $   */
 
 /*
  * Copyright (c) 1982, 1986, 1993
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_domain.c,v 1.86 2011/05/29 03:32:46 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_domain.c,v 1.87 2011/10/27 21:10:55 seanb Exp $");
 
 #include <sys/param.h>
 #include <sys/socket.h>
@@ -602,7 +602,7 @@
                        if (pr->pr_slowtimo)
                                (*pr->pr_slowtimo)();
        }
-       callout_schedule(&pfslowtimo_ch, hz / 2);
+       callout_schedule(&pfslowtimo_ch, hz / PR_SLOWHZ);
 }
 
 void
@@ -618,5 +618,5 @@
                        if (pr->pr_fasttimo)
                                (*pr->pr_fasttimo)();
        }
-       callout_schedule(&pffasttimo_ch, hz / 5);
+       callout_schedule(&pffasttimo_ch, hz / PR_FASTHZ);
 }



Home | Main Index | Thread Index | Old Index