mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	Drivers: hv: vmbus: remove hv_synic_free_cpu() call from hv_synic_cleanup()
We already have hv_synic_free() which frees all per-cpu pages for all CPUs, let's remove the hv_synic_free_cpu() call from hv_synic_cleanup() so it will be possible to do separate cleanup (writing to MSRs) and final freeing. This is going to be used to assist kexec. Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com> Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
		
							parent
							
								
									eead035a35
								
							
						
					
					
						commit
						06210b42f3
					
				
					 2 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -530,6 +530,4 @@ void hv_synic_cleanup(void *arg)
 | 
			
		|||
	rdmsrl(HV_X64_MSR_SCONTROL, sctrl.as_uint64);
 | 
			
		||||
	sctrl.enable = 0;
 | 
			
		||||
	wrmsrl(HV_X64_MSR_SCONTROL, sctrl.as_uint64);
 | 
			
		||||
 | 
			
		||||
	hv_synic_free_cpu(cpu);
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1120,6 +1120,7 @@ static void __exit vmbus_exit(void)
 | 
			
		|||
		tasklet_kill(hv_context.event_dpc[cpu]);
 | 
			
		||||
		smp_call_function_single(cpu, hv_synic_cleanup, NULL, 1);
 | 
			
		||||
	}
 | 
			
		||||
	hv_synic_free();
 | 
			
		||||
	acpi_bus_unregister_driver(&vmbus_acpi_driver);
 | 
			
		||||
	hv_cpu_hotplug_quirk(false);
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue