Revert "ANDROID: KVM: arm64: Add hyp_spinlock_t static initializer"

This reverts commit b7ceb8bab7.

Bug: 233587962
Signed-off-by: Will Deacon <willdeacon@google.com>
Change-Id: Id40d2098b3d9cfbe85bb83549e36dd2a1bdda503
This commit is contained in:
Will Deacon
2022-07-07 15:51:40 +01:00
parent 8e35b1cebb
commit 7d1015fa9d

View File

@@ -28,17 +28,9 @@ typedef union hyp_spinlock {
};
} hyp_spinlock_t;
#define __HYP_SPIN_LOCK_INITIALIZER \
{ .__val = 0 }
#define __HYP_SPIN_LOCK_UNLOCKED \
((hyp_spinlock_t) __HYP_SPIN_LOCK_INITIALIZER)
#define DEFINE_HYP_SPINLOCK(x) hyp_spinlock_t x = __HYP_SPIN_LOCK_UNLOCKED
#define hyp_spin_lock_init(l) \
do { \
*(l) = __HYP_SPIN_LOCK_UNLOCKED; \
*(l) = (hyp_spinlock_t){ .__val = 0 }; \
} while (0)
static inline void hyp_spin_lock(hyp_spinlock_t *lock)