Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 118841
b: refs/heads/master
c: c60ff51
h: refs/heads/master
i:
  118839: aebfa13
v: v3
  • Loading branch information
Xiantao Zhang authored and Avi Kivity committed Nov 11, 2008
1 parent ad47185 commit 1d1cf84
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 928d4bf747e9c290b690ff515d8f81e8ee226d97
refs/heads/master: c60ff51eb26dfcfb0bdc807b09a096aeadd01325
5 changes: 5 additions & 0 deletions trunk/arch/ia64/kvm/vcpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,10 @@ static inline u64 __gpfn_is_io(u64 gpfn)
#define MODE_IND(psr) \
(((psr).it << 2) + ((psr).dt << 1) + (psr).rt)

#ifndef CONFIG_SMP
#define _vmm_raw_spin_lock(x) do {}while(0)
#define _vmm_raw_spin_unlock(x) do {}while(0)
#else
#define _vmm_raw_spin_lock(x) \
do { \
__u32 *ia64_spinlock_ptr = (__u32 *) (x); \
Expand All @@ -403,6 +407,7 @@ static inline u64 __gpfn_is_io(u64 gpfn)
do { barrier(); \
((spinlock_t *)x)->raw_lock.lock = 0; } \
while (0)
#endif

void vmm_spin_lock(spinlock_t *lock);
void vmm_spin_unlock(spinlock_t *lock);
Expand Down

0 comments on commit 1d1cf84

Please sign in to comment.