Date: Thu, 7 Jun 2001 22:24:22 -0700 (PDT) From: Peter Wemm <peter@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/ata ata-disk.c atapi-all.c src/sys/dev/sound/pcm sound.c src/sys/kern kern_environment.c kern_ktr.c kern_malloc.c subr_witness.c uipc_mbuf.c uipc_socket2.c src/sys/net if_loop.c src/sys/netinet tcp_subr.c src/sys/sys ... Message-ID: <200106080524.f585OM802386@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
peter 2001/06/07 22:24:22 PDT Modified files: sys/dev/ata ata-disk.c atapi-all.c sys/dev/sound/pcm sound.c sys/kern kern_environment.c kern_ktr.c kern_malloc.c subr_witness.c uipc_mbuf.c uipc_socket2.c sys/net if_loop.c sys/netinet tcp_subr.c sys/sys kernel.h Log: "Fix" the previous initial attempt at fixing TUNABLE_INT(). This time around, use a common function for looking up and extracting the tunables from the kernel environment. This saves duplicating the same function over and over again. This way typically has an overhead of 8 bytes + the path string, versus about 26 bytes + the path string. Revision Changes Path 1.108 +4 -4 src/sys/dev/ata/ata-disk.c 1.76 +2 -2 src/sys/dev/ata/atapi-all.c 1.47 +2 -2 src/sys/dev/sound/pcm/sound.c 1.13 +16 -1 src/sys/kern/kern_environment.c 1.19 +4 -4 src/sys/kern/kern_ktr.c 1.88 +2 -2 src/sys/kern/kern_malloc.c 1.75 +4 -4 src/sys/kern/subr_witness.c 1.81 +4 -4 src/sys/kern/uipc_mbuf.c 1.72 +2 -2 src/sys/kern/uipc_socket2.c 1.60 +2 -2 src/sys/net/if_loop.c 1.102 +2 -2 src/sys/netinet/tcp_subr.c 1.90 +38 -14 src/sys/sys/kernel.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106080524.f585OM802386>