]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/code-patching: Don't call is_vmalloc_or_module_addr() without CONFIG_MODULES
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Tue, 22 Mar 2022 15:40:18 +0000 (16:40 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 8 May 2022 12:15:41 +0000 (22:15 +1000)
commita5974c9528cbfd25c1df8a605517140afbd5c68d
tree6ab9c9d1fba2707d16e9c6c396f3a963eafde0f9
parent64d2b7d7307dcb9b0267ac2d7e7647a88a49416c
powerpc/code-patching: Don't call is_vmalloc_or_module_addr() without CONFIG_MODULES

If CONFIG_MODULES is not set, there is no point in checking
whether text is in module area.

This reduced the time needed to activate/deactivate ftrace
by more than 10% on an 8xx.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/f3c701cce00a38620788c0fc43ff0b611a268c54.1647962456.git.christophe.leroy@csgroup.eu
arch/powerpc/lib/code-patching.c