aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/sys/sched.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/sys/sched.h b/sys/sys/sched.h
index 1cefda7e5c75a..d472fcb0a2f0a 100644
--- a/sys/sys/sched.h
+++ b/sys/sys/sched.h
@@ -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_ */