mirror of
				https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
				synced 2025-10-31 08:08:51 +01:00 
			
		
		
		
	Fixed MTP to work with TWRP
This commit is contained in:
		
						commit
						f6dfaef42e
					
				
					 50820 changed files with 20846062 additions and 0 deletions
				
			
		
							
								
								
									
										29
									
								
								arch/sh/include/asm/perf_event.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								arch/sh/include/asm/perf_event.h
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,29 @@ | |||
| #ifndef __ASM_SH_PERF_EVENT_H | ||||
| #define __ASM_SH_PERF_EVENT_H | ||||
| 
 | ||||
| struct hw_perf_event; | ||||
| 
 | ||||
| #define MAX_HWEVENTS	2 | ||||
| 
 | ||||
| struct sh_pmu { | ||||
| 	const char	*name; | ||||
| 	unsigned int	num_events; | ||||
| 	void		(*disable_all)(void); | ||||
| 	void		(*enable_all)(void); | ||||
| 	void		(*enable)(struct hw_perf_event *, int); | ||||
| 	void		(*disable)(struct hw_perf_event *, int); | ||||
| 	u64		(*read)(int); | ||||
| 	int		(*event_map)(int); | ||||
| 	unsigned int	max_events; | ||||
| 	unsigned long	raw_event_mask; | ||||
| 	const int	(*cache_events)[PERF_COUNT_HW_CACHE_MAX] | ||||
| 				       [PERF_COUNT_HW_CACHE_OP_MAX] | ||||
| 				       [PERF_COUNT_HW_CACHE_RESULT_MAX]; | ||||
| }; | ||||
| 
 | ||||
| /* arch/sh/kernel/perf_event.c */ | ||||
| extern int register_sh_pmu(struct sh_pmu *); | ||||
| extern int reserve_pmc_hardware(void); | ||||
| extern void release_pmc_hardware(void); | ||||
| 
 | ||||
| #endif /* __ASM_SH_PERF_EVENT_H */ | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 awab228
						awab228