MFC r201790:
- Set td_slptick to 0 when moving threads out of sleepqueues. - Move td_slptick from u_int to int in order to follow 'ticks' signedness and wrap up accordingly. Sponsored by: Sandvine Incorporated
This commit is contained in:
parent
b93b253dc6
commit
aa16019d66
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/8/; revision=202965
@ -1050,7 +1050,7 @@ sched_wakeup(struct thread *td)
|
||||
updatepri(td);
|
||||
resetpriority(td);
|
||||
}
|
||||
td->td_slptick = ticks;
|
||||
td->td_slptick = 0;
|
||||
ts->ts_slptime = 0;
|
||||
sched_add(td, SRQ_BORING);
|
||||
}
|
||||
|
@ -216,7 +216,7 @@ struct thread {
|
||||
int td_pinned; /* (k) Temporary cpu pin count. */
|
||||
struct ucred *td_ucred; /* (k) Reference to credentials. */
|
||||
u_int td_estcpu; /* (t) estimated cpu utilization */
|
||||
u_int td_slptick; /* (t) Time at sleep. */
|
||||
int td_slptick; /* (t) Time at sleep. */
|
||||
struct rusage td_ru; /* (t) rusage information */
|
||||
uint64_t td_incruntime; /* (t) Cpu ticks to transfer to proc. */
|
||||
uint64_t td_runtime; /* (t) How many cpu ticks we've run. */
|
||||
|
Loading…
Reference in New Issue
Block a user