mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-28 16:43:09 +00:00
- Only allow pinning and unpinning of curthread.
This commit is contained in:
parent
4008aa4cd2
commit
511a04e4f9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=122768
@ -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…
Reference in New Issue
Block a user