From 26446d1edb012908c21f3768fa143bce11fd1181 Mon Sep 17 00:00:00 2001 From: Zvonko Kaiser Date: Thu, 4 Jul 2024 17:08:43 +0000 Subject: [PATCH] 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 --- ...add-cpu-hotplug-hot-unplug-into-device-manage.patch | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/packaging/kernel/patches/6.1.x/dragonball-experimental/0003-upcall-add-cpu-hotplug-hot-unplug-into-device-manage.patch b/tools/packaging/kernel/patches/6.1.x/dragonball-experimental/0003-upcall-add-cpu-hotplug-hot-unplug-into-device-manage.patch index 0d1097b650..4e57335331 100644 --- a/tools/packaging/kernel/patches/6.1.x/dragonball-experimental/0003-upcall-add-cpu-hotplug-hot-unplug-into-device-manage.patch +++ b/tools/packaging/kernel/patches/6.1.x/dragonball-experimental/0003-upcall-add-cpu-hotplug-hot-unplug-into-device-manage.patch @@ -129,7 +129,7 @@ index ebcb6ef74285..210ef5d6c9d5 100644 + */ + lock_device_hotplug(); + cpu_maps_update_begin(); -+ cpu_hotplug_begin(); ++ cpus_write_lock(); + + cpu_id = generic_processor_info(apic_id, apic_ver); + if (cpu_id < 0) { @@ -149,7 +149,7 @@ index ebcb6ef74285..210ef5d6c9d5 100644 + goto rollback_register_cpu; + } + -+ cpu_hotplug_done(); ++ cpus_write_unlock(); + cpu_maps_update_done(); + unlock_device_hotplug(); + @@ -172,7 +172,7 @@ index ebcb6ef74285..210ef5d6c9d5 100644 + per_cpu(x86_cpu_to_apicid, cpu_id) = -1; + num_processors--; +rollback_generic_cpu: -+ cpu_hotplug_done(); ++ cpus_write_unlock(); + cpu_maps_update_done(); + unlock_device_hotplug(); + return ret; @@ -196,14 +196,14 @@ index ebcb6ef74285..210ef5d6c9d5 100644 + + lock_device_hotplug(); + cpu_maps_update_begin(); -+ cpu_hotplug_begin(); ++ cpus_write_lock(); + + arch_unregister_cpu(cpu_id); + set_cpu_present(cpu_id, false); + per_cpu(x86_cpu_to_apicid, cpu_id) = -1; + num_processors--; + -+ cpu_hotplug_done(); ++ cpus_write_unlock(); + cpu_maps_update_done(); + unlock_device_hotplug(); +