process group hash tables are now dynamic
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Sun, 21 Aug 1994 08:10:56 +0000 (00:10 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Sun, 21 Aug 1994 08:10:56 +0000 (00:10 -0800)
SCCS-vsn: sys/conf/param.c 8.3

usr/src/sys/conf/param.c

index d9220e1..d1043ac 100644 (file)
@@ -9,7 +9,7 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)param.c     8.2 (Berkeley) %G%
+ *     @(#)param.c     8.3 (Berkeley) %G%
  */
 
 #include <sys/param.h>
  */
 
 #include <sys/param.h>
@@ -92,28 +92,3 @@ struct       callout *callout;
 struct cblock *cfree;
 struct buf *buf, *swbuf;
 char   *buffers;
 struct cblock *cfree;
 struct buf *buf, *swbuf;
 char   *buffers;
-
-/*
- * Proc/pgrp hashing.
- * Here so that hash table sizes can depend on MAXUSERS/NPROC.
- * Hash size must be a power of two.
- * NOW omission of this file will cause loader errors!
- */
-
-#if NPROC > 1024
-#define        PIDHSZ          512
-#else
-#if NPROC > 512
-#define        PIDHSZ          256
-#else
-#if NPROC > 256
-#define        PIDHSZ          128
-#else
-#define        PIDHSZ          64
-#endif
-#endif
-#endif
-
-struct proc *pidhash[PIDHSZ];
-struct pgrp *pgrphash[PIDHSZ];
-int    pidhashmask = PIDHSZ - 1;