mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
kernel: remove global balancetime variable -> make function static
This commit is contained in:
parent
4a7c44fee4
commit
8a6c61c8ef
1 changed files with 3 additions and 4 deletions
|
@ -555,20 +555,19 @@ yield(void)
|
|||
* since priorities will otherwise only be recalculated when
|
||||
* the running process blocks.
|
||||
*/
|
||||
ulong balancetime;
|
||||
|
||||
static void
|
||||
rebalance(void)
|
||||
{
|
||||
static ulong lasttime;
|
||||
int pri, npri;
|
||||
Schedq *rq;
|
||||
Proc *p;
|
||||
ulong t;
|
||||
|
||||
t = m->ticks;
|
||||
if(t - balancetime < HZ)
|
||||
if(t - lasttime < HZ)
|
||||
return;
|
||||
balancetime = t;
|
||||
lasttime = t;
|
||||
|
||||
assert(!islo());
|
||||
|
||||
|
|
Loading…
Reference in a new issue