kernel - Fix cpu_rotator in lwkt_alloc_thread()
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 28 Sep 2017 02:40:13 +0000 (19:40 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 28 Sep 2017 02:40:13 +0000 (19:40 -0700)
commit5dd85b08610a7600e509f3598575e2e04de8787e
tree9a354846cddc2be119136e227dc24927f7fa72fd
parentf4a9869feb646aafe72de6e5d61051a023a02676
kernel - Fix cpu_rotator in lwkt_alloc_thread()

* The cpu and rotator are signed.  Use an unsigned modulo to ensure
  that the resulting cpu is properly ranged.
sys/kern/lwkt_thread.c