Files
Conghui ee2eb2e8e3 hv: sched: fix bug when reboot vm
When a new thread is wakeup and added to runqueue, it will get the
smallest avt (svt) from runqueue to initiate its avt. But when all
threads are blocked, and removed from the runqueue, the svt is 0. The
new thread will get avt=0. avt=0 means very high priority, and can run
for a very long time until it catchup with other thread's avt in
runqueue.

To fix it, adjust the new thread's avt when there is another thread in
runqueue.

Tracked-On: #6888
Signed-off-by: Conghui <conghui.chen@intel.com>
2021-11-25 13:43:44 +08:00
..
2021-09-24 09:32:18 +08:00
2021-11-25 13:43:44 +08:00
2021-09-24 09:32:18 +08:00
2021-09-24 09:32:18 +08:00
2021-05-18 16:43:28 +08:00
2021-08-19 20:00:45 +08:00