Semaphores are no longer performance-critical, so a generic C implementation is better for maintainability, debuggability and extensibility. Thanks to Peter Zijlstra for fixing the lockdep warning. Thanks to Harvey Harrison for pointing out that the unlikely() was unnecessary. Signed-off-by: Matthew Wilcox <willy@linux.intel.com> Acked-by: Ingo Molnar <mingo@elte.hu>
		
			
				
	
	
		
			5 lines
		
	
	
	
		
			116 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			5 lines
		
	
	
	
		
			116 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
#include "linux/module.h"
 | 
						|
#include "asm/checksum.h"
 | 
						|
 | 
						|
/* Networking helper routines. */
 | 
						|
EXPORT_SYMBOL(csum_partial);
 |