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.