diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-07-09 08:33:33 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-16 05:15:53 -0400 |
commit | 4bb689eee12ceb6d669a0c9a519037c049a8af38 (patch) | |
tree | c234cc9f7b1bc79d5fbe710933f792ff10de86f3 /include | |
parent | 2d9e1e2f58b5612aa4eab0ab54c84308a29dbd79 (diff) |
x86: paravirt spinlocks, !CONFIG_SMP build fixes
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-x86/paravirt.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-x86/paravirt.h b/include/asm-x86/paravirt.h index 65ed02cdbbd7..b2aba8fdaae7 100644 --- a/include/asm-x86/paravirt.h +++ b/include/asm-x86/paravirt.h | |||
@@ -1387,6 +1387,8 @@ void _paravirt_nop(void); | |||
1387 | 1387 | ||
1388 | void paravirt_use_bytelocks(void); | 1388 | void paravirt_use_bytelocks(void); |
1389 | 1389 | ||
1390 | #ifdef CONFIG_SMP | ||
1391 | |||
1390 | static inline int __raw_spin_is_locked(struct raw_spinlock *lock) | 1392 | static inline int __raw_spin_is_locked(struct raw_spinlock *lock) |
1391 | { | 1393 | { |
1392 | return PVOP_CALL1(int, pv_lock_ops.spin_is_locked, lock); | 1394 | return PVOP_CALL1(int, pv_lock_ops.spin_is_locked, lock); |
@@ -1412,6 +1414,8 @@ static __always_inline void __raw_spin_unlock(struct raw_spinlock *lock) | |||
1412 | return PVOP_VCALL1(pv_lock_ops.spin_unlock, lock); | 1414 | return PVOP_VCALL1(pv_lock_ops.spin_unlock, lock); |
1413 | } | 1415 | } |
1414 | 1416 | ||
1417 | #endif | ||
1418 | |||
1415 | /* These all sit in the .parainstructions section to tell us what to patch. */ | 1419 | /* These all sit in the .parainstructions section to tell us what to patch. */ |
1416 | struct paravirt_patch_site { | 1420 | struct paravirt_patch_site { |
1417 | u8 *instr; /* original instructions */ | 1421 | u8 *instr; /* original instructions */ |