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

@ -837,7 +837,7 @@ void process_unlock(struct process *proc, struct mcs_rwlock_node_irqsave *lock);
void chain_process(struct process *);
void chain_thread(struct thread *);
void proc_init(void);
void set_timer(void);
void set_timer(int runq_locked);
struct sig_pending *hassigpending(struct thread *thread);
void release_fp_regs(struct thread *proc);