mirror of
				https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
				synced 2025-10-30 16:13:18 +00:00 
			
		
		
		
	 5967ed87ad
			
		
	
	
		5967ed87ad
		
	
	
	
	
		
			
			Reduce the SMP locks table size by using relative pointers instead of absolute ones, thus cutting the table size by half. Signed-off-by: Jan Beulich <jbeulich@novell.com> LKML-Reference: <4BCF30FE020000780003B3B6@vpn.id2.novell.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
		
			
				
	
	
		
			19 lines
		
	
	
		
			227 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			227 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifdef __ASSEMBLY__
 | |
| 
 | |
| #include <asm/asm.h>
 | |
| 
 | |
| #ifdef CONFIG_SMP
 | |
| 	.macro LOCK_PREFIX
 | |
| 1:	lock
 | |
| 	.section .smp_locks,"a"
 | |
| 	.balign 4
 | |
| 	.long 1b - .
 | |
| 	.previous
 | |
| 	.endm
 | |
| #else
 | |
| 	.macro LOCK_PREFIX
 | |
| 	.endm
 | |
| #endif
 | |
| 
 | |
| #endif  /*  __ASSEMBLY__  */
 |