[kernel] Update scheduler policies

A few updates to scheduler policies:
* Grant processes a startup timeslice bonus for time spent loading the
  process
* Grant processes a small fraction of a timeslice for yielding the CPU
  with time left
This commit is contained in:
Justin C. Miller
2020-06-28 17:50:29 -07:00
parent 6c468a134b
commit 0a28d2db07
3 changed files with 21 additions and 8 deletions

View File

@@ -25,7 +25,7 @@ public:
/// Update the internal state via the source
/// \returns Current value of the clock
inline void update() { m_current = value(); return m_current; }
inline void update() { m_current = value(); }
/// Wait in a tight loop
/// \arg interval Time to wait, in ns