From 31278bc163a0fe3239a4ac4047e4968fad17fc6e Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 4 Feb 2018 16:32:14 -0600 Subject: [PATCH] Kconfigs: Add comments and a dependency. --- arch/Kconfig | 5 +++++ sched/Kconfig | 1 + 2 files changed, 6 insertions(+) diff --git a/arch/Kconfig b/arch/Kconfig index d31542a74d..f1bd17077a 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -213,6 +213,11 @@ config ARCH_HAVE_RTC_SUBSECONDS config ARCH_GLOBAL_IRQDISABLE bool default n + ---help--- + Indicates that disabling interrupts on one CPU will either (1) disable + all interrupts globally on all CPUs, or (2) will disable interprocessor + interrupts as well so that no context switches can occur on the CPU + that disabled "local" interrupts. config ARCH_USE_MMU bool "Enable MMU" diff --git a/sched/Kconfig b/sched/Kconfig index 64af6daf10..f6ea30c099 100644 --- a/sched/Kconfig +++ b/sched/Kconfig @@ -252,6 +252,7 @@ config SPINLOCK config SPINLOCK_IRQ bool "Support Spinlocks with IRQ control" default n + depends on ARCH_GLOBAL_IRQDISABLE ---help--- Enables suppport for spinlocks with IRQ control. This feature can be used to protect data in SMP mode.