mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-04 15:14:27 +00:00
HV: remove 'spinlock_rfags' declaration
- remove the global declaration of 'cpu_int_value' Signed-off-by: Yonghua Huang <yonghua.huang@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -63,18 +63,15 @@ static inline void spinlock_release(spinlock_t *lock)
|
||||
|
||||
#endif /* ASSEMBLER */
|
||||
|
||||
#define spinlock_rflags unsigned long cpu_int_value
|
||||
|
||||
#define spinlock_irqsave_obtain(l) \
|
||||
#define spinlock_irqsave_obtain(lock, p_rflags) \
|
||||
do { \
|
||||
CPU_INT_ALL_DISABLE(); \
|
||||
spinlock_obtain(l); \
|
||||
CPU_INT_ALL_DISABLE(p_rflags); \
|
||||
spinlock_obtain(lock); \
|
||||
} while (0)
|
||||
|
||||
#define spinlock_irqrestore_release(l) \
|
||||
#define spinlock_irqrestore_release(lock, rflags) \
|
||||
do { \
|
||||
spinlock_release(l); \
|
||||
CPU_INT_ALL_RESTORE(); \
|
||||
spinlock_release(lock); \
|
||||
CPU_INT_ALL_RESTORE(rflags); \
|
||||
} while (0)
|
||||
|
||||
#endif /* SPINLOCK_H */
|
||||
|
||||
Reference in New Issue
Block a user