csky: Fixup ftrace modify panic
authorGuo Ren <guoren@linux.alibaba.com>
Sun, 2 Feb 2020 01:58:42 +0000 (09:58 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Mar 2020 12:00:16 +0000 (13:00 +0100)
commit3469dfd86e097bbc9d56c1bd255aad316ba746b1
tree35d8fc9d7d455c833c0fa2a3a5650371494ada2e
parentc7ce725c525ad7dfa9d976a60776104cd8c5b4d3
csky: Fixup ftrace modify panic

[ Upstream commit 359ae00d12589c31cf103894d0f32588d523ca83 ]

During ftrace init, linux will replace all function prologues
(call_mcout) with nops, but it need flush_dcache and
invalidate_icache to make it work. So flush_cache functions
couldn't be nested called by ftrace framework.

Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/csky/mm/Makefile