diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2007-10-11 10:34:09 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2007-10-11 10:34:09 +0000 |
commit | 0c29247b4bc12a417c75522bfc5f2b621c3144e8 (patch) | |
tree | f648131c8f9de6ecec22233697432f4271336d32 /sys | |
parent | 9c0d95cb3e60aa6706fc0795e4e00c0dbc5510c7 (diff) |
sched_lock_idle and sched_unlock_idle are obsolete now.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/sched_bsd.c | 16 | ||||
-rw-r--r-- | sys/sys/sched.h | 6 |
2 files changed, 2 insertions, 20 deletions
diff --git a/sys/kern/sched_bsd.c b/sys/kern/sched_bsd.c index aafcbb9eeb4..1954f3a3ce7 100644 --- a/sys/kern/sched_bsd.c +++ b/sys/kern/sched_bsd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sched_bsd.c,v 1.13 2007/10/10 15:53:53 art Exp $ */ +/* $OpenBSD: sched_bsd.c,v 1.14 2007/10/11 10:34:08 art Exp $ */ /* $NetBSD: kern_synch.c,v 1.37 1996/04/22 01:38:37 christos Exp $ */ /*- @@ -296,20 +296,6 @@ updatepri(struct proc *p) resetpriority(p); } -#if defined(MULTIPROCESSOR) || defined(LOCKDEBUG) -void -sched_unlock_idle(void) -{ - SIMPLE_UNLOCK(&sched_lock); -} - -void -sched_lock_idle(void) -{ - SIMPLE_LOCK(&sched_lock); -} -#endif /* MULTIPROCESSOR || LOCKDEBUG */ - /* * General yield call. Puts the current process back on its run queue and * performs a voluntary context switch. diff --git a/sys/sys/sched.h b/sys/sys/sched.h index 62b7f568637..05a98d222ce 100644 --- a/sys/sys/sched.h +++ b/sys/sys/sched.h @@ -1,4 +1,4 @@ -/* $OpenBSD: sched.h,v 1.17 2007/10/10 15:53:53 art Exp $ */ +/* $OpenBSD: sched.h,v 1.18 2007/10/11 10:34:08 art Exp $ */ /* $NetBSD: sched.h,v 1.2 1999/02/28 18:14:58 ross Exp $ */ /*- @@ -191,10 +191,6 @@ do { \ splx(s); \ } while (/* CONSTCOND */ 0) - -void sched_lock_idle(void); -void sched_unlock_idle(void); - #else /* ! MULTIPROCESSOR || LOCKDEBUG */ #define SCHED_ASSERT_LOCKED() splassert(IPL_SCHED); |