]> git.baikalelectronics.ru Git - kernel.git/commit
RISC-V: Take text_mutex in ftrace_init_nop()
authorPalmer Dabbelt <palmerdabbelt@google.com>
Tue, 25 Aug 2020 00:21:22 +0000 (17:21 -0700)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Fri, 11 Sep 2020 19:15:21 +0000 (12:15 -0700)
commit991390b678087a5b6df5d4b53b7ebf52ac5bda6e
tree85f71e6b0e4ee323d508fb1ba1bb19a74e8c47a9
parent307d1b3e26310db573de01ed3dc4a02b4fb13ada
RISC-V: Take text_mutex in ftrace_init_nop()

Without this we get lockdep failures.  They're spurious failures as SMP isn't
up when ftrace_init_nop() is called.  As far as I can tell the easiest fix is
to just take the lock, which also seems like the safest fix.

Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Acked-by: Guo Ren <guoren@kernel.org>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/include/asm/ftrace.h
arch/riscv/kernel/ftrace.c