mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 08:44:41 +00:00 
			
		
		
		
	MIPS: Add basic CPUFreq options.
This patch adds basic options for MIPS CPUFreq support. Since the cp0 timer's frequency is based on the processor clockrate it can not be used with CPUFReq; an additional external timer is required. Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com> Cc: linux-mips@linux-mips.org Cc: cpufreq@vger.kernel.org, Cc: Dave Jones <davej@redhat.com>, Cc: Dominik Brodowski <linux@dominikbrodowski.net>, Cc: yanh@lemote.com Cc: huhb@lemote.com, Patchwork: http://patchwork.linux-mips.org/patch/659/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
		
							parent
							
								
									916daba8a9
								
							
						
					
					
						commit
						9726b43a4d
					
				
					 2 changed files with 30 additions and 0 deletions
				
			
		|  | @ -2161,6 +2161,7 @@ config MMU | |||
| 
 | ||||
| config I8253 | ||||
| 	bool | ||||
| 	select MIPS_EXTERNAL_TIMER | ||||
| 
 | ||||
| config ZONE_DMA32 | ||||
| 	bool | ||||
|  | @ -2237,6 +2238,8 @@ source "kernel/power/Kconfig" | |||
| 
 | ||||
| endmenu | ||||
| 
 | ||||
| source "arch/mips/kernel/cpufreq/Kconfig" | ||||
| 
 | ||||
| source "net/Kconfig" | ||||
| 
 | ||||
| source "drivers/Kconfig" | ||||
|  |  | |||
							
								
								
									
										27
									
								
								arch/mips/kernel/cpufreq/Kconfig
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								arch/mips/kernel/cpufreq/Kconfig
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,27 @@ | |||
| # | ||||
| # CPU Frequency scaling | ||||
| # | ||||
| 
 | ||||
| config MIPS_EXTERNAL_TIMER | ||||
| 	bool | ||||
| 
 | ||||
| config MIPS_CPUFREQ | ||||
| 	bool | ||||
| 	default y | ||||
| 	depends on CPU_SUPPORTS_CPUFREQ && MIPS_EXTERNAL_TIMER | ||||
| 
 | ||||
| if MIPS_CPUFREQ | ||||
| 
 | ||||
| menu "CPU Frequency scaling" | ||||
| 
 | ||||
| source "drivers/cpufreq/Kconfig" | ||||
| 
 | ||||
| if CPU_FREQ | ||||
| 
 | ||||
| comment "CPUFreq processor drivers" | ||||
| 
 | ||||
| endif	# CPU_FREQ | ||||
| 
 | ||||
| endmenu | ||||
| 
 | ||||
| endif	# MIPS_CPUFREQ | ||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Wu Zhangjin
						Wu Zhangjin