aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Roberson <jeff@FreeBSD.org>2003-11-15 23:54:49 +0000
committerJeff Roberson <jeff@FreeBSD.org>2003-11-15 23:54:49 +0000
commit511a04e4f9013ea51b77e7183993f0399036ae33 (patch)
treee789e0144430c4c588b2943f11ac78de96155ec5
parent4008aa4cd2a524e87d59b82a5426cd1cdcecc215 (diff)
Notes
-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_ */