linux/arch/powerpc/platforms/cell
Valentin Schneider 2c669ef697 powerpc/preempt: Don't touch the idle task's preempt_count during hotplug
Powerpc currently resets a CPU's idle task preempt_count to 0 before
said task starts executing the secondary startup routine (and becomes an
idle task proper).

This conflicts with commit f1a0a376ca ("sched/core: Initialize the
idle task with preemption disabled").

which initializes all of the idle tasks' preempt_count to
PREEMPT_DISABLED during smp_init(). Note that this was superfluous
before said commit, as back then the hotplug machinery would invoke
init_idle() via idle_thread_get(), which would have already reset the
CPU's idle task's preempt_count to PREEMPT_ENABLED.

Get rid of this preempt_count write.

Fixes: f1a0a376ca ("sched/core: Initialize the idle task with preemption disabled")
Reported-by: Bharata B Rao <bharata@linux.ibm.com>
Signed-off-by: Valentin Schneider <valentin.schneider@arm.com>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Tested-by: Bharata B Rao <bharata@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210707183831.2106509-1-valentin.schneider@arm.com
2021-07-08 23:38:10 +10:00
..
spufs powerpc/spufs: Remove set but not used variable 'dummy' 2021-06-15 17:12:27 +10:00
axon_msi.c powerpc/cell/axon_msi: no need to check return value of debugfs_create functions 2020-03-04 22:44:25 +11:00
cbe_powerbutton.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 153 2019-05-30 11:26:32 -07:00
cbe_regs.c mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00
cbe_thermal.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 153 2019-05-30 11:26:32 -07:00
cell.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 118 2019-05-24 17:39:02 +02:00
cpufreq_spudemand.c cpufreq: Register governors at core_initcall 2020-07-02 13:03:30 +02:00
interrupt.c mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00
interrupt.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
iommu.c powerpc/iommu: Do not immediately panic when failed IOMMU table allocation 2021-04-23 01:38:04 +10:00
Kconfig powerpc: Move the use of irq_domain_add_nomap() behind a config option 2021-06-10 13:09:17 +01:00
Makefile arch: powerpc: Stop building and using oprofile 2021-01-29 10:05:51 +05:30
pervasive.c powerpc/cell: tidy up pervasive declarations 2021-02-09 00:02:11 +11:00
pervasive.h powerpc/cell: tidy up pervasive declarations 2021-02-09 00:02:11 +11:00
pmu.c powerpc: Add missing linux/{of.h,irqdomain.h} include directives 2021-06-10 13:09:16 +01:00
ras.c powerpc: convert interrupt handlers to use wrappers 2021-02-09 00:02:12 +11:00
ras.h powerpc: convert interrupt handlers to use wrappers 2021-02-09 00:02:12 +11:00
setup.c mm: don't include asm/pgtable.h if linux/mm.h is already included 2020-06-09 09:39:13 -07:00
smp.c powerpc/preempt: Don't touch the idle task's preempt_count during hotplug 2021-07-08 23:38:10 +10:00
spider-pci.c powerpc/spider-pci: Remove set but not used variable 'val' 2021-06-15 17:12:27 +10:00
spider-pic.c mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00
spu_base.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 153 2019-05-30 11:26:32 -07:00
spu_callbacks.c powerpc/syscalls: switch to generic syscalltbl.sh 2021-04-14 23:04:16 +10:00
spu_manage.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 164 2019-05-30 11:26:38 -07:00
spu_priv1_mmio.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 167 2019-05-30 11:26:39 -07:00
spu_priv1_mmio.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 167 2019-05-30 11:26:39 -07:00
spu_syscalls.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 153 2019-05-30 11:26:32 -07:00