1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-19 15:33:56 +00:00

Make !SMP kernels compile, and as far as I can tell, work again.

This commit is contained in:
Poul-Henning Kamp 2004-10-12 20:57:37 +00:00
parent 330e667e8a
commit 13e7430fde
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=136452

View File

@ -329,13 +329,13 @@ adjustrunqueue( struct thread *td, int newpri)
static void
maybe_preempt_in_ksegrp(struct thread *td)
{
struct thread *running_thread;
#if defined(SMP)
int worst_pri;
struct ksegrp *kg;
cpumask_t cpumask,dontuse;
struct pcpu *pc;
struct pcpu *best_pcpu;
struct thread *running_thread;
struct thread *cputhread;
#ifndef FULL_PREEMPTION
@ -404,6 +404,7 @@ maybe_preempt_in_ksegrp(struct thread *td)
#endif
#else
running_thread = curthread;
KASSERT(running_thread->td_ksegrp == td->td_ksegrp,
("maybe_preempt_in_ksegrp: No chance to run thread"));
#endif