 5da5025858
			
		
	
	
	5da5025858
	
	
	
		
			
			The copy we were using came from another copy I did for the dwarves (pahole) package, that came from the kernel years ago. The only function that is used by the perf tools and that isn't in the kernel is list_del_range, that I'm leaving in the perf tools only for now. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Paul Mackerras <paulus@samba.org> LKML-Reference: <20090701174608.GA5823@ghostprotocols.net> Signed-off-by: Ingo Molnar <mingo@elte.hu>
		
			
				
	
	
		
			18 lines
		
	
	
	
		
			553 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			553 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
| #include "../../../../include/linux/list.h"
 | |
| 
 | |
| #ifndef PERF_LIST_H
 | |
| #define PERF_LIST_H
 | |
| /**
 | |
|  * list_del_range - deletes range of entries from list.
 | |
|  * @begin: first element in the range to delete from the list.
 | |
|  * @end: last element in the range to delete from the list.
 | |
|  * Note: list_empty on the range of entries does not return true after this,
 | |
|  * the entries is in an undefined state.
 | |
|  */
 | |
| static inline void list_del_range(struct list_head *begin,
 | |
| 				  struct list_head *end)
 | |
| {
 | |
| 	begin->prev->next = end->next;
 | |
| 	end->next->prev = begin->prev;
 | |
| }
 | |
| #endif
 |