kernel - Uninline crit_exit()
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 29 Aug 2010 07:10:25 +0000 (00:10 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 29 Aug 2010 07:10:25 +0000 (00:10 -0700)
commit9cf43f91337703a66f91000adb6e4ad0d9141dd2
tree7a6284d7a7e539ed72f951b2c70a182bb7f63dea
parentda44240f1a0a5258ca269338fffe31e86c69fb92
kernel - Uninline crit_exit()

* Have crit_exit() call an actual procedure instead of inlining it.
  This doesn't seem to effect performance any and it reduces the
  size of the kernel noticeably.

  Modern cpus heavily optimize call/return paths these days and there
  might even be advantages to the smaller code and branch-cache footprint.
  The conditionals inside crit_exit() are nearly perfectly predicted
  now that there is no differentiation between the N->(N-1) and 1->0 case.
sys/kern/lwkt_thread.c
sys/sys/thread.h