Add header guards to protect <asm/alternative-asm.h> against multiple inclusion. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com> Link: http://lkml.kernel.org/r/1348256595-29119-6-git-send-email-hpa@linux.intel.com
		
			
				
	
	
		
			31 lines
		
	
	
	
		
			500 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
	
		
			500 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
#ifndef _ASM_X86_ALTERNATIVE_ASM_H
 | 
						|
#define _ASM_X86_ALTERNATIVE_ASM_H
 | 
						|
 | 
						|
#ifdef __ASSEMBLY__
 | 
						|
 | 
						|
#include <asm/asm.h>
 | 
						|
 | 
						|
#ifdef CONFIG_SMP
 | 
						|
	.macro LOCK_PREFIX
 | 
						|
672:	lock
 | 
						|
	.pushsection .smp_locks,"a"
 | 
						|
	.balign 4
 | 
						|
	.long 672b - .
 | 
						|
	.popsection
 | 
						|
	.endm
 | 
						|
#else
 | 
						|
	.macro LOCK_PREFIX
 | 
						|
	.endm
 | 
						|
#endif
 | 
						|
 | 
						|
.macro altinstruction_entry orig alt feature orig_len alt_len
 | 
						|
	.long \orig - .
 | 
						|
	.long \alt - .
 | 
						|
	.word \feature
 | 
						|
	.byte \orig_len
 | 
						|
	.byte \alt_len
 | 
						|
.endm
 | 
						|
 | 
						|
#endif  /*  __ASSEMBLY__  */
 | 
						|
 | 
						|
#endif /* _ASM_X86_ALTERNATIVE_ASM_H */
 |