summaryrefslogtreecommitdiff
path: root/arch/csky/kernel/traps.c
diff options
context:
space:
mode:
authorGuo Ren <guoren@linux.alibaba.com>2020-03-31 17:15:42 +0300
committerGuo Ren <guoren@linux.alibaba.com>2020-03-31 17:15:42 +0300
commitdd7c983e78a28ff0b22f8bcf32a303b4f79cb318 (patch)
tree459801c869b68f658e573b20e7f094490b63af3e /arch/csky/kernel/traps.c
parent89a3927a775c0a7212e2e3c4e2d42cd48895bee0 (diff)
downloadlinux-dd7c983e78a28ff0b22f8bcf32a303b4f79cb318.tar.xz
csky/ftrace: Fixup ftrace_modify_code deadlock without CPU_HAS_ICACHE_INS
If ICACHE_INS is not supported, we use IPI to sync icache on each core. But ftrace_modify_code is called from stop_machine from default implementation of arch_ftrace_update_code and stop_machine callback is irq_disabled. When you call ipi with irq_disabled, a deadlock will happen. We couldn't use icache_flush with irq_disabled, but startup make_nop is specific case and it needn't ipi other cores. Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Diffstat (limited to 'arch/csky/kernel/traps.c')
0 files changed, 0 insertions, 0 deletions