CONFIG(SMP) was an invalid condition to use in cases where one
stage requires spinlocks and another one does not. The
stage not requiring spinlock still required <smp/spinlock.h>
to be implemented with no-op stubs.
This reverts commit 037ee4b556
soc/amd/picasso: Add dummy spinlock for psp_verstage
Change-Id: Iba52febdeee78294f916775ee9ce8a82d6203570
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/59094
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
15 lines
356 B
C
15 lines
356 B
C
#ifndef SMP_SPINLOCK_H
|
|
#define SMP_SPINLOCK_H
|
|
|
|
#if ENV_STAGE_SUPPORTS_SMP
|
|
#include <arch/smp/spinlock.h>
|
|
#else /* !CONFIG_SMP */
|
|
|
|
#define DECLARE_SPIN_LOCK(x)
|
|
#define spin_is_locked(lock) 0
|
|
#define spin_unlock_wait(lock) do {} while (0)
|
|
#define spin_lock(lock) do {} while (0)
|
|
#define spin_unlock(lock) do {} while (0)
|
|
#endif
|
|
|
|
#endif /* SMP_SPINLOCK_H */
|