mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-18 16:08:25 +00:00
dragonball: Update patches
After v5.14 there is no cpu_hotplug_begin function now cpus_write_lock same for cpu_hotplug_done = cpus_write_unlock Signed-off-by: Zvonko Kaiser <zkaiser@nvidia.com>
This commit is contained in:
parent
ad574b7e10
commit
26446d1edb
@ -129,7 +129,7 @@ index ebcb6ef74285..210ef5d6c9d5 100644
|
|||||||
+ */
|
+ */
|
||||||
+ lock_device_hotplug();
|
+ lock_device_hotplug();
|
||||||
+ cpu_maps_update_begin();
|
+ cpu_maps_update_begin();
|
||||||
+ cpu_hotplug_begin();
|
+ cpus_write_lock();
|
||||||
+
|
+
|
||||||
+ cpu_id = generic_processor_info(apic_id, apic_ver);
|
+ cpu_id = generic_processor_info(apic_id, apic_ver);
|
||||||
+ if (cpu_id < 0) {
|
+ if (cpu_id < 0) {
|
||||||
@ -149,7 +149,7 @@ index ebcb6ef74285..210ef5d6c9d5 100644
|
|||||||
+ goto rollback_register_cpu;
|
+ goto rollback_register_cpu;
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ cpu_hotplug_done();
|
+ cpus_write_unlock();
|
||||||
+ cpu_maps_update_done();
|
+ cpu_maps_update_done();
|
||||||
+ unlock_device_hotplug();
|
+ unlock_device_hotplug();
|
||||||
+
|
+
|
||||||
@ -172,7 +172,7 @@ index ebcb6ef74285..210ef5d6c9d5 100644
|
|||||||
+ per_cpu(x86_cpu_to_apicid, cpu_id) = -1;
|
+ per_cpu(x86_cpu_to_apicid, cpu_id) = -1;
|
||||||
+ num_processors--;
|
+ num_processors--;
|
||||||
+rollback_generic_cpu:
|
+rollback_generic_cpu:
|
||||||
+ cpu_hotplug_done();
|
+ cpus_write_unlock();
|
||||||
+ cpu_maps_update_done();
|
+ cpu_maps_update_done();
|
||||||
+ unlock_device_hotplug();
|
+ unlock_device_hotplug();
|
||||||
+ return ret;
|
+ return ret;
|
||||||
@ -196,14 +196,14 @@ index ebcb6ef74285..210ef5d6c9d5 100644
|
|||||||
+
|
+
|
||||||
+ lock_device_hotplug();
|
+ lock_device_hotplug();
|
||||||
+ cpu_maps_update_begin();
|
+ cpu_maps_update_begin();
|
||||||
+ cpu_hotplug_begin();
|
+ cpus_write_lock();
|
||||||
+
|
+
|
||||||
+ arch_unregister_cpu(cpu_id);
|
+ arch_unregister_cpu(cpu_id);
|
||||||
+ set_cpu_present(cpu_id, false);
|
+ set_cpu_present(cpu_id, false);
|
||||||
+ per_cpu(x86_cpu_to_apicid, cpu_id) = -1;
|
+ per_cpu(x86_cpu_to_apicid, cpu_id) = -1;
|
||||||
+ num_processors--;
|
+ num_processors--;
|
||||||
+
|
+
|
||||||
+ cpu_hotplug_done();
|
+ cpus_write_unlock();
|
||||||
+ cpu_maps_update_done();
|
+ cpu_maps_update_done();
|
||||||
+ unlock_device_hotplug();
|
+ unlock_device_hotplug();
|
||||||
+
|
+
|
||||||
|
Loading…
Reference in New Issue
Block a user