diff --git a/arch/Kconfig b/arch/Kconfig index eaebb89a78..21e3f5d10d 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -284,6 +284,14 @@ config ARCH_GLOBAL_IRQDISABLE interrupts as well so that no context switches can occur on the CPU that disabled "local" interrupts. +config ARCH_HAVE_SYSCALL_HOOKS + bool + default n + ---help--- + Indicates that the architecture supports the system call hooks as + required if CONFIG_SCHED_INSTRUMENTATION_SYSCALL is enabled. Refer + to sched/Kconfig for additional information. + config ARCH_FPU bool "FPU support" default y diff --git a/sched/Kconfig b/sched/Kconfig index a1d66dd36c..a534969d87 100644 --- a/sched/Kconfig +++ b/sched/Kconfig @@ -975,6 +975,7 @@ config SCHED_INSTRUMENTATION_SPINLOCKS config SCHED_INSTRUMENTATION_SYSCALL bool "System call monitor hooks" default n + depends on LIB_SYSCALL && ARCH_HAVE_SYSCALL_HOOKS ---help--- Enables additional hooks for entry and exit from system call. Board-specific logic must provide this additional logic.