mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 08:44:41 +00:00 
			
		
		
		
	MIPS: Export get_c0_perfcount_int()
get_c0_perfcount_int is tested from oprofile code. If oprofile is
compiled as module, get_c0_perfcount_int needs to be exported, otherwise
it cannot be resolved.
Fixes: a669efc4a3 ("MIPS: Add hook to get C0 performance counter interrupt")
Cc: stable@vger.kernel.org # v3.19+
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Cc: linux-mips@linux-mips.org
Cc: abrestic@chromium.org
Patchwork: https://patchwork.linux-mips.org/patch/10763/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
			
			
This commit is contained in:
		
							parent
							
								
									1e77863a51
								
							
						
					
					
						commit
						0cb0985f57
					
				
					 6 changed files with 6 additions and 0 deletions
				
			
		|  | @ -190,6 +190,7 @@ int get_c0_perfcount_int(void) | |||
| { | ||||
| 	return ATH79_MISC_IRQ(5); | ||||
| } | ||||
| EXPORT_SYMBOL_GPL(get_c0_perfcount_int); | ||||
| 
 | ||||
| unsigned int get_c0_compare_int(void) | ||||
| { | ||||
|  |  | |||
|  | @ -466,6 +466,7 @@ int get_c0_perfcount_int(void) | |||
| { | ||||
| 	return ltq_perfcount_irq; | ||||
| } | ||||
| EXPORT_SYMBOL_GPL(get_c0_perfcount_int); | ||||
| 
 | ||||
| unsigned int get_c0_compare_int(void) | ||||
| { | ||||
|  |  | |||
|  | @ -154,6 +154,7 @@ int get_c0_perfcount_int(void) | |||
| 
 | ||||
| 	return mips_cpu_perf_irq; | ||||
| } | ||||
| EXPORT_SYMBOL_GPL(get_c0_perfcount_int); | ||||
| 
 | ||||
| unsigned int get_c0_compare_int(void) | ||||
| { | ||||
|  |  | |||
|  | @ -77,6 +77,7 @@ int get_c0_perfcount_int(void) | |||
| 		return MIPS_CPU_IRQ_BASE + cp0_perfcount_irq; | ||||
| 	return -1; | ||||
| } | ||||
| EXPORT_SYMBOL_GPL(get_c0_perfcount_int); | ||||
| 
 | ||||
| unsigned int get_c0_compare_int(void) | ||||
| { | ||||
|  |  | |||
|  | @ -26,6 +26,7 @@ int get_c0_perfcount_int(void) | |||
| { | ||||
| 	return gic_get_c0_perfcount_int(); | ||||
| } | ||||
| EXPORT_SYMBOL_GPL(get_c0_perfcount_int); | ||||
| 
 | ||||
| int get_c0_fdc_int(void) | ||||
| { | ||||
|  |  | |||
|  | @ -89,6 +89,7 @@ int get_c0_perfcount_int(void) | |||
| { | ||||
| 	return rt_perfcount_irq; | ||||
| } | ||||
| EXPORT_SYMBOL_GPL(get_c0_perfcount_int); | ||||
| 
 | ||||
| unsigned int get_c0_compare_int(void) | ||||
| { | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Felix Fietkau
						Felix Fietkau