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>
This commit is contained in:
parent
db4e3f87bf
commit
c61559a336
|
@ -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)); \
|
||||
|
|
Loading…
Reference in New Issue