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:
Attilio Rao 2010-01-25 11:56:53 +00:00
parent b93b253dc6
commit aa16019d66
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/stable/8/; revision=202965
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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. */