Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/x86/include Allow x86 builds to have the opportunit...



details:   https://anonhg.NetBSD.org/src/rev/695aa64555c8
branches:  trunk
changeset: 446661:695aa64555c8
user:      cherry <cherry%NetBSD.org@localhost>
date:      Thu Dec 13 16:16:51 2018 +0000

description:
Allow x86 builds to have the opportunity to not have pre-emption
enabled by default. This can be effected by having a:

"options        NO_PREEMPTION"

line in the kernel configuration file.

While it was tempting to tie __HAVE_PREEMPTION to MULTIPROCESSOR,
as is currently assumed in sys/kern/kern_stub.c ,

having MULTIPROCESSOR without __HAVE_PREEMPTION
and not having either are valid configuration options which users
could have choice of. We thus err on the side of configurability.

diffstat:

 sys/arch/x86/include/intr.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r e082e5fd2c96 -r 695aa64555c8 sys/arch/x86/include/intr.h
--- a/sys/arch/x86/include/intr.h       Thu Dec 13 13:11:28 2018 +0000
+++ b/sys/arch/x86/include/intr.h       Thu Dec 13 16:16:51 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intr.h,v 1.56 2018/06/24 13:35:33 jdolecek Exp $       */
+/*     $NetBSD: intr.h,v 1.57 2018/12/13 16:16:51 cherry Exp $ */
 
 /*-
  * Copyright (c) 1998, 2001, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -34,7 +34,9 @@
 
 #if !defined(XEN)
 #define        __HAVE_FAST_SOFTINTS
+#if !defined(NO_PREEMPTION)
 #define        __HAVE_PREEMPTION
+#endif /* !defined(NO_PREEMPTION) */
 #endif /*  !defined(XEN) */
 
 #ifdef _KERNEL



Home | Main Index | Thread Index | Old Index