From c61559a336cd564c3af73f0e04bbb6cdaa224a3f Mon Sep 17 00:00:00 2001 From: "Yan, Like" Date: Mon, 16 Apr 2018 14:54:14 +0800 Subject: [PATCH] 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 Acked-by: Anthony Xu --- hypervisor/include/lib/spinlock.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/hypervisor/include/lib/spinlock.h b/hypervisor/include/lib/spinlock.h index 7e07c42ab..fddd479f8 100644 --- a/hypervisor/include/lib/spinlock.h +++ b/hypervisor/include/lib/spinlock.h @@ -93,14 +93,12 @@ static inline int spinlock_release(spinlock_t *lock) #define spinlock_rflags unsigned long cpu_int_value -#define spinlock_irq_obtain(l) (CPU_IRQ_DISABLE(), spinlock_obtain((l))) #define spinlock_irqsave_obtain(l) \ do { \ CPU_INT_ALL_DISABLE(); \ spinlock_obtain((l)); \ } while (0) -#define spinlock_irq_release(l) (spinlock_release((l)), CPU_IRQ_ENABLE()) #define spinlock_irqrestore_release(l) \ do { \ spinlock_release((l)); \