alarm: run checkalarms() only on cpu0 (from eriks alarm-once patch)
This commit is contained in:
parent
04b7803291
commit
58f8d7874b
2 changed files with 3 additions and 2 deletions
|
@ -37,7 +37,7 @@ alarmkproc(void*)
|
|||
}
|
||||
|
||||
/*
|
||||
* called every clock tick
|
||||
* called every clock tick on cpu0
|
||||
*/
|
||||
void
|
||||
checkalarms(void)
|
||||
|
|
|
@ -153,7 +153,8 @@ hzclock(Ureg *ur)
|
|||
exit(0);
|
||||
}
|
||||
|
||||
checkalarms();
|
||||
if(m->machno == 0)
|
||||
checkalarms();
|
||||
|
||||
if(up && up->state == Running)
|
||||
hzsched(); /* in proc.c */
|
||||
|
|
Loading…
Reference in a new issue