Skip to content

Commit c61559a

Browse files
lyan3jren1
authored andcommitted
hv: remove spinlock_irq_obtain/spinlock_irq_release
These APIs are not used, and not as safe as spinlock_irqsave_obtain/ spinlock_irqrestore_release. Signed-off-by: Yan, Like <like.yan@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
1 parent db4e3f8 commit c61559a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

hypervisor/include/lib/spinlock.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,12 @@ static inline int spinlock_release(spinlock_t *lock)
9393

9494
#define spinlock_rflags unsigned long cpu_int_value
9595

96-
#define spinlock_irq_obtain(l) (CPU_IRQ_DISABLE(), spinlock_obtain((l)))
9796
#define spinlock_irqsave_obtain(l) \
9897
do { \
9998
CPU_INT_ALL_DISABLE(); \
10099
spinlock_obtain((l)); \
101100
} while (0)
102101

103-
#define spinlock_irq_release(l) (spinlock_release((l)), CPU_IRQ_ENABLE())
104102
#define spinlock_irqrestore_release(l) \
105103
do { \
106104
spinlock_release((l)); \

0 commit comments

Comments
 (0)