kernel - Reduce BSS size (2)
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 23 Apr 2016 05:08:43 +0000 (22:08 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 23 Apr 2016 05:08:43 +0000 (22:08 -0700)
commitdf0cd41ca2b32c997e05f2ce18551386dda44055
tree47b98299ab1a2a8aed27b06155bf9565a61c8b96
parentd8f4ebf4a60b32b6d104aefadec34de5aaad1133
kernel - Reduce BSS size (2)

* Fix a bunch of other places in the kernel where large BSS arrays are
  declared.  Reduces the kernel image by another ~2MB or so on top of
  the ~6MB saved in the last commit.

* Primarily these are places where a 'struct thread' is being embedded
  in a structure which is being declared [MAXCPU].  With MAXCPU at 256
  the result is pretty bloated.  Changing the embedded thread to a
  thread pointer removes most of the bloat.
sys/kern/kern_intr.c
sys/kern/kern_timeout.c
sys/kern/usched_bsd4.c
sys/kern/usched_dfly.c
sys/kern/usched_dummy.c
sys/net/if.c
sys/net/netisr.c
sys/net/netisr2.h