From 80e7107c9f5077a307eaf8e2c9b00edae0a1c0eb Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 25 Nov 2018 17:22:33 -0600 Subject: [PATCH] sched/irq/Make.defs: Fix warning about irq_csection.o appearing multiple times in the same rule. --- sched/Kconfig | 2 +- sched/irq/Make.defs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/sched/Kconfig b/sched/Kconfig index 568648d207..5629665663 100644 --- a/sched/Kconfig +++ b/sched/Kconfig @@ -891,7 +891,6 @@ config SCHED_INSTRUMENTATION default n select SCHED_SUSPENDSCHEDULER select SCHED_RESUMESCHEDULER - select IRQCOUNT ---help--- Enables instrumentation in scheduler to monitor system performance. If enabled, then the board-specific logic must provide the following @@ -938,6 +937,7 @@ config SCHED_INSTRUMENTATION_PREEMPTION config SCHED_INSTRUMENTATION_CSECTION bool "Critical section monitor hooks" default n + select IRQCOUNT ---help--- Enables additional hooks for entry and exit from critical sections. Interrupts are disabled while within a critical section. Board- diff --git a/sched/irq/Make.defs b/sched/irq/Make.defs index ad32fb1601..0f666a9959 100644 --- a/sched/irq/Make.defs +++ b/sched/irq/Make.defs @@ -36,7 +36,6 @@ CSRCS += irq_initialize.c irq_attach.c irq_dispatch.c irq_unexpectedisr.c ifeq ($(CONFIG_SMP),y) -CSRCS += irq_csection.c ifeq ($(CONFIG_SPINLOCK_IRQ),y) ifeq ($(CONFIG_ARCH_GLOBAL_IRQDISABLE),y) CSRCS += irq_spinlock.c