mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 08:44:41 +00:00 
			
		
		
		
	ACPI / processor: Drop unused variable from processor_perflib.c
The count variable in acpi_processor_preregister_performance() is only initalized as 1 for one CPU and incremented when another CPU sharing the same dependency domain is found. It isn't referenced anywhere else, so drop it. Signed-off-by: Lan Tianyu <tianyu.lan@intel.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
		
							parent
							
								
									86d6725a57
								
							
						
					
					
						commit
						09d5ca804e
					
				
					 1 changed files with 1 additions and 3 deletions
				
			
		|  | @ -639,7 +639,7 @@ end: | |||
| int acpi_processor_preregister_performance( | ||||
| 		struct acpi_processor_performance __percpu *performance) | ||||
| { | ||||
| 	int count, count_target; | ||||
| 	int count_target; | ||||
| 	int retval = 0; | ||||
| 	unsigned int i, j; | ||||
| 	cpumask_var_t covered_cpus; | ||||
|  | @ -711,7 +711,6 @@ int acpi_processor_preregister_performance( | |||
| 
 | ||||
| 		/* Validate the Domain info */ | ||||
| 		count_target = pdomain->num_processors; | ||||
| 		count = 1; | ||||
| 		if (pdomain->coord_type == DOMAIN_COORD_TYPE_SW_ALL) | ||||
| 			pr->performance->shared_type = CPUFREQ_SHARED_TYPE_ALL; | ||||
| 		else if (pdomain->coord_type == DOMAIN_COORD_TYPE_HW_ALL) | ||||
|  | @ -745,7 +744,6 @@ int acpi_processor_preregister_performance( | |||
| 
 | ||||
| 			cpumask_set_cpu(j, covered_cpus); | ||||
| 			cpumask_set_cpu(j, pr->performance->shared_cpu_map); | ||||
| 			count++; | ||||
| 		} | ||||
| 
 | ||||
| 		for_each_possible_cpu(j) { | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Lan Tianyu
						Lan Tianyu