set_timer: Start timer when runnable thread count is bigger than one

Change-Id: Ie32799fff2936ffc057f166db5681edccdbf5920
This commit is contained in:
Masamichi Takagi
2018-08-16 16:54:11 +09:00
parent 00a34a8ba3
commit cd00fc3a78
3 changed files with 24 additions and 7 deletions

View File

@@ -7050,7 +7050,7 @@ SYSCALL_DECLARE(setitimer)
timer_start = 0;
}
thread->itimer_enabled = timer_start;
set_timer();
set_timer(0);
return 0;
}
@@ -9499,7 +9499,7 @@ set_cputime(int mode)
thread->itimer_prof.it_value.tv_sec == 0 &&
thread->itimer_prof.it_value.tv_usec == 0){
thread->itimer_enabled = 0;
set_timer();
set_timer(0);
}
}
}