diff options
author | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2019-04-16 03:50:24 +0200 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2019-04-16 03:53:24 +0200 |
commit | 850fb2c12f446023c3d186f6050c9a5fec998266 (patch) | |
tree | 2a6654541011544ca34fb3357eeb8986b401aca2 /recipes-kernel/linux/linux-toradex-rt-4.9-2.3.x/002k.patch | |
parent | a5f5d85e52717e136e692478fb5d822c1ce70046 (diff) |
linux-toradex-rt: fix it again
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Diffstat (limited to 'recipes-kernel/linux/linux-toradex-rt-4.9-2.3.x/002k.patch')
-rw-r--r-- | recipes-kernel/linux/linux-toradex-rt-4.9-2.3.x/002k.patch | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/recipes-kernel/linux/linux-toradex-rt-4.9-2.3.x/002k.patch b/recipes-kernel/linux/linux-toradex-rt-4.9-2.3.x/002k.patch deleted file mode 100644 index 09c6527..0000000 --- a/recipes-kernel/linux/linux-toradex-rt-4.9-2.3.x/002k.patch +++ /dev/null @@ -1,31 +0,0 @@ ---- b/kernel/cpu.c -+++ a/kernel/cpu.c -@@ -955,19 +955,20 @@ - return ret; - } - --static int cpu_down_maps_locked(unsigned int cpu, enum cpuhp_state target) --{ -- if (cpu_hotplug_disabled) -- return -EBUSY; -- return _cpu_down(cpu, 0, target); --} -- - static int do_cpu_down(unsigned int cpu, enum cpuhp_state target) - { - int err; - - cpu_maps_update_begin(); -+ -+ if (cpu_hotplug_disabled) { -+ err = -EBUSY; -+ goto out; -+ } -+ -+ err = _cpu_down(cpu, 0, target); -+ -+out: -- err = cpu_down_maps_locked(cpu, target); - cpu_maps_update_done(); - return err; - } |