diff options
author | Thomas Schwinge <tschwinge@gnu.org> | 2006-12-03 21:50:21 +0000 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2009-06-18 00:26:58 +0200 |
commit | 5507b361044db9036a96b42f991972c9d3ea0494 (patch) | |
tree | be5ce87e8a2d6f7c1b1cb7f7ee47a5e8730c00c1 /kern | |
parent | 96c01087a657dfc1c877b63e9e6b0f45c37b9c78 (diff) |
2006-12-03 Thomas Schwinge <tschwinge@gnu.org>
[patch #5019 --- ``Remove checks for continuations'']
* DEVELOPMENT: Document the removal.
* i386/configfrag.ac (CONTINUATIONS): Don't define.
2006-12-03 Leonardo Lopes Pereira <leonardolopespereira@gmail.com>
[patch #5019 --- ``Remove checks for continuations'']
* ipc/mach_msg.c: Adopt all users of CONTINUATIONS as if it were always
defined.
* kern/eventcount.c: Likewise.
* kern/ipc_sched.c: Likewise.
* kern/syscall_subr.c: Likewise.
* vm/vm_fault.c: Likewise.
* vm/vm_pageout.c: Likewise.
* vm/vm_resident.c: Likewise.
Diffstat (limited to 'kern')
-rw-r--r-- | kern/eventcount.c | 4 | ||||
-rw-r--r-- | kern/ipc_sched.c | 2 | ||||
-rw-r--r-- | kern/syscall_subr.c | 12 |
3 files changed, 0 insertions, 18 deletions
diff --git a/kern/eventcount.c b/kern/eventcount.c index 14cd989..fe7626d 100644 --- a/kern/eventcount.c +++ b/kern/eventcount.c @@ -126,7 +126,6 @@ void evc_notify_abort(thread_t thread) splx(s); } -#ifdef CONTINUATIONS /* * Just so that we return success, and give * up the stack while blocked @@ -137,9 +136,6 @@ evc_continue(void) thread_syscall_return(KERN_SUCCESS); /* NOTREACHED */ } -#else /* not CONTINUATIONS */ -#define evc_continue 0 -#endif /* not CONTINUATIONS */ /* * User-trappable diff --git a/kern/ipc_sched.c b/kern/ipc_sched.c index 5f7fbf0..60f1283 100644 --- a/kern/ipc_sched.c +++ b/kern/ipc_sched.c @@ -166,7 +166,6 @@ thread_will_wait_with_timeout( #define check_bound_processor(thread) TRUE #endif /* NCPUS > 1 */ -#ifdef CONTINUATIONS /* * Routine: thread_handoff * Purpose: @@ -282,4 +281,3 @@ thread_handoff( counter_always(c_thread_handoff_hits++); return TRUE; } -#endif /* CONTINUATIONS */ diff --git a/kern/syscall_subr.c b/kern/syscall_subr.c index a94e8db..01bd932 100644 --- a/kern/syscall_subr.c +++ b/kern/syscall_subr.c @@ -65,7 +65,6 @@ extern void thread_depress_priority(); extern kern_return_t thread_depress_abort(); -#ifdef CONTINUATIONS void swtch_continue() { register processor_t myprocessor; @@ -75,9 +74,6 @@ void swtch_continue() myprocessor->processor_set->runq.count > 0); /*NOTREACHED*/ } -#else /* not CONTINUATIONS */ -#define swtch_continue 0 -#endif /* not CONTINUATIONS */ boolean_t swtch() { @@ -97,7 +93,6 @@ boolean_t swtch() myprocessor->processor_set->runq.count > 0); } -#ifdef CONTINUATIONS void swtch_pri_continue() { register thread_t thread = current_thread(); @@ -110,9 +105,6 @@ void swtch_pri_continue() myprocessor->processor_set->runq.count > 0); /*NOTREACHED*/ } -#else /* not CONTINUATIONS */ -#define swtch_pri_continue 0 -#endif /* not CONTINUATIONS */ boolean_t swtch_pri(pri) int pri; @@ -149,7 +141,6 @@ boolean_t swtch_pri(pri) extern int hz; -#ifdef CONTINUATIONS void thread_switch_continue() { register thread_t cur_thread = current_thread(); @@ -162,9 +153,6 @@ void thread_switch_continue() thread_syscall_return(KERN_SUCCESS); /*NOTREACHED*/ } -#else /* not CONTINUATIONS */ -#define thread_switch_continue 0 -#endif /* not CONTINUATIONS */ /* * thread_switch: |