kernel - Expand p_nice effect more, fix %cpu calculation bug
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 20 Feb 2017 05:23:15 +0000 (21:23 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 20 Feb 2017 05:23:15 +0000 (21:23 -0800)
commit77eaab6994cc6edbf11b7ece6ea841c7795e4374
tree5525f09dfebfcf1f5ab35764f808810e520a6583
parentacb1fe1aaf0fb3e9d20a6438506c08e3969efbf4
kernel - Expand p_nice effect more, fix %cpu calculation bug

* Expand the p_nice effect even more.

* Fix a %cpu calculation bug which could improperly cause the
  lwp->lwp_priority to be reset to its base level, potentially giving
  a cpu-bound process more cpu than intended.
sys/kern/usched_dfly.c