kernel_optimize_test/arch/csky
Guo Ren df7f0f8be3 csky: patch_text: Fixup last cpu should be master
commit 8c4d16471e2babe9bdfe41d6ef724526629696cb upstream.

These patch_text implementations are using stop_machine_cpuslocked
infrastructure with atomic cpu_count. The original idea: When the
master CPU patch_text, the others should wait for it. But current
implementation is using the first CPU as master, which couldn't
guarantee the remaining CPUs are waiting. This patch changes the
last CPU as the master to solve the potential risk.

Fixes: 33e53ae1ce ("csky: Add kprobes supported")
Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Signed-off-by: Guo Ren <guoren@kernel.org>
Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-06-09 10:21:26 +02:00
..
abiv1
abiv2
boot
configs
include csky: change a Kconfig symbol name to fix e1000 build error 2021-04-28 13:40:02 +02:00
kernel csky: patch_text: Fixup last cpu should be master 2022-06-09 10:21:26 +02:00
lib
mm csky: syscache: Fixup duplicate cache flush 2021-07-14 16:56:52 +02:00
Kconfig csky: change a Kconfig symbol name to fix e1000 build error 2021-04-28 13:40:02 +02:00
Kconfig.debug
Kconfig.platforms
Makefile