Only bump the switch_count counter when lwkt_switch() actually switches
authorMatthew Dillon <dillon@dragonflybsd.org>
Wed, 13 Apr 2005 04:02:08 +0000 (04:02 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Wed, 13 Apr 2005 04:02:08 +0000 (04:02 +0000)
commit94f6d86e18d284f391129b2002aab50fe39de88d
tree09da4318e514bc3e97dd607776aa523234e7f0d8
parent4c9f5a7fe0c22e319f6f9d4a34f042864a26e09e
Only bump the switch_count counter when lwkt_switch() actually switches
to a different thread.  Otherwise the idle loop causes this counter
to go haywire.
sys/kern/lwkt_thread.c