alarm: run checkalarms() only on cpu0 (from eriks alarm-once patch)

This commit is contained in:
cinap_lenrek 2013-06-22 09:53:14 +02:00
parent 04b7803291
commit 58f8d7874b
2 changed files with 3 additions and 2 deletions

View file

@ -37,7 +37,7 @@ alarmkproc(void*)
}
/*
* called every clock tick
* called every clock tick on cpu0
*/
void
checkalarms(void)

View file

@ -153,7 +153,8 @@ hzclock(Ureg *ur)
exit(0);
}
checkalarms();
if(m->machno == 0)
checkalarms();
if(up && up->state == Running)
hzsched(); /* in proc.c */