- Only allow pinning and unpinning of curthread.
This commit is contained in:
parent
a76d7282d2
commit
581eef4bce
@ -76,9 +76,9 @@ void sched_rem(struct thread *td);
|
||||
* hold a thread on a particular CPU.
|
||||
*/
|
||||
void sched_bind(struct thread *td, int cpu);
|
||||
static __inline void sched_pin(struct thread *td);
|
||||
static __inline void sched_pin(void);
|
||||
void sched_unbind(struct thread *td);
|
||||
static __inline void sched_unpin(struct thread *td);
|
||||
static __inline void sched_unpin(void);
|
||||
|
||||
/*
|
||||
* These interfaces will eventually be removed.
|
||||
@ -101,15 +101,15 @@ extern struct p_sched *proc0_sched;
|
||||
extern struct td_sched *thread0_sched;
|
||||
|
||||
static __inline void
|
||||
sched_pin(struct thread *td)
|
||||
sched_pin(void)
|
||||
{
|
||||
td->td_pinned++;
|
||||
curthread->td_pinned++;
|
||||
}
|
||||
|
||||
static __inline void
|
||||
sched_unpin(struct thread *td)
|
||||
sched_unpin(void)
|
||||
{
|
||||
td->td_pinned--;
|
||||
curthread->td_pinned--;
|
||||
}
|
||||
|
||||
#endif /* !_SYS_SCHED_H_ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user