kernel - Fix sysclock_t comparison in usched code
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 13 Oct 2012 17:11:43 +0000 (10:11 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 13 Oct 2012 17:11:43 +0000 (10:11 -0700)
commit68a23beee83b69821e0e19230f87377e37dead9c
tree5491fd235909fac6e229d6f453c74e89e8fe80e9
parent283a4a38e8d7fa8c794b0ef735303cf8c28ced79
kernel - Fix sysclock_t comparison in usched code

* Fix a sysclock_t comparison that was attempting to detect an overflow
  by checking if an unsigned field was negative.  The field has
  to be cast to signed for the test to work as expected.

Reported-by: enjolras
sys/kern/usched_bsd4.c
sys/kern/usched_dfly.c
sys/sys/systimer.h