diff --git a/src/include/smp/atomic.h b/src/include/smp/atomic.h index 4748990f12..09a77e72f1 100644 --- a/src/include/smp/atomic.h +++ b/src/include/smp/atomic.h @@ -1,7 +1,7 @@ #ifndef SMP_ATOMIC_H #define SMP_ATOMIC_H -#ifdef CONFIG_SMP +#if CONFIG_SMP == 1 #include #else diff --git a/src/include/smp/spinlock.h b/src/include/smp/spinlock.h index 77a0e51682..29f348dea0 100644 --- a/src/include/smp/spinlock.h +++ b/src/include/smp/spinlock.h @@ -1,7 +1,7 @@ #ifndef SMP_SPINLOCK_H #define SMP_SPINLOCK_H -#ifdef CONFIG_SMP +#if CONFIG_SMP == 1 #include #else /* !CONFIG_SMP */