From 88ebb169b0d658c6e8dbed763830a5ca279eef55 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Sat, 19 Sep 2009 16:35:14 +0200 Subject: [PATCH] Restrict visibility of lwkt_schedule_remote() to SMP. --- sys/kern/lwkt_thread.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/kern/lwkt_thread.c b/sys/kern/lwkt_thread.c index 285750f2b7..a5177633cd 100644 --- a/sys/kern/lwkt_thread.c +++ b/sys/kern/lwkt_thread.c @@ -98,7 +98,9 @@ static struct objcache *thread_cache; volatile cpumask_t mp_lock_contention_mask; +#ifdef SMP static void lwkt_schedule_remote(void *arg, int arg2, struct intrframe *frame); +#endif extern void cpu_heavy_restore(void); extern void cpu_lwkt_restore(void); @@ -1153,6 +1155,8 @@ lwkt_schedule_noresched(thread_t td) _lwkt_schedule(td, 0); } +#ifdef SMP + /* * When scheduled remotely if frame != NULL the IPIQ is being * run via doreti or an interrupt then preemption can be allowed. @@ -1175,8 +1179,6 @@ lwkt_schedule_remote(void *arg, int arg2, struct intrframe *frame) } } -#ifdef SMP - /* * Thread migration using a 'Pull' method. The thread may or may not be * the current thread. It MUST be descheduled and in a stable state. -- 2.41.0