From 7ad8cc6c9ab436cbb35df481e86cd90e5b30c80c Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Sun, 20 Dec 2009 12:28:28 +0100 Subject: [PATCH] Fix UP kernel build. --- sys/platform/pc32/i386/machdep.c | 4 ++++ sys/platform/pc64/x86_64/machdep.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/sys/platform/pc32/i386/machdep.c b/sys/platform/pc32/i386/machdep.c index 0903ec8ee2..e97fbf9dce 100644 --- a/sys/platform/pc32/i386/machdep.c +++ b/sys/platform/pc32/i386/machdep.c @@ -938,6 +938,8 @@ cpu_idle(void) } } +#ifdef SMP + /* * This routine is called when the only runnable threads require * the MP lock, and the scheduler couldn't get it. On a real cpu @@ -960,6 +962,8 @@ cpu_spinlock_contested(void) cpu_pause(); } +#endif + /* * Clear registers on exec */ diff --git a/sys/platform/pc64/x86_64/machdep.c b/sys/platform/pc64/x86_64/machdep.c index 0c72a7a4fe..268c5dcdc3 100644 --- a/sys/platform/pc64/x86_64/machdep.c +++ b/sys/platform/pc64/x86_64/machdep.c @@ -965,6 +965,8 @@ cpu_idle(void) } } +#ifdef SMP + /* * This routine is called when the only runnable threads require * the MP lock, and the scheduler couldn't get it. On a real cpu @@ -987,6 +989,8 @@ cpu_spinlock_contested(void) cpu_pause(); } +#endif + /* * Clear registers on exec */ -- 2.11.4.GIT