[PATCH v1 3/4] powerpc/code-patching: Use jump_label for testing freed initmem

2022-09-27 Thread Christophe Leroy
Once init is done, initmem is freed forever so no need to test system_state at every call to patch_instruction(). Use jump_label. This reduces by 2% the time needed to activate ftrace on an 8xx. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/code-patching.h | 2 ++ arch/powerpc/l

Re: [PATCH v1 3/4] powerpc/code-patching: Use jump_label for testing freed initmem

2022-05-19 Thread Christophe Leroy
Le 19/05/2022 à 08:53, Christophe Leroy a écrit : Le 19/05/2022 à 08:27, Christophe Leroy a écrit : Le 19/05/2022 à 04:17, Guenter Roeck a écrit : On Tue, Mar 22, 2022 at 04:40:20PM +0100, Christophe Leroy wrote: Once init is done, initmem is freed forever so no need to test system_stat

Re: [PATCH v1 3/4] powerpc/code-patching: Use jump_label for testing freed initmem

2022-05-18 Thread Christophe Leroy
Le 19/05/2022 à 08:27, Christophe Leroy a écrit : Le 19/05/2022 à 04:17, Guenter Roeck a écrit : On Tue, Mar 22, 2022 at 04:40:20PM +0100, Christophe Leroy wrote: Once init is done, initmem is freed forever so no need to test system_state at every call to patch_instruction(). Use jump_lab

Re: [PATCH v1 3/4] powerpc/code-patching: Use jump_label for testing freed initmem

2022-05-18 Thread Christophe Leroy
Le 19/05/2022 à 04:17, Guenter Roeck a écrit : > On Tue, Mar 22, 2022 at 04:40:20PM +0100, Christophe Leroy wrote: >> Once init is done, initmem is freed forever so no need to >> test system_state at every call to patch_instruction(). >> >> Use jump_label. >> >> This reduces by 2% the time needed

Re: [PATCH v1 3/4] powerpc/code-patching: Use jump_label for testing freed initmem

2022-05-18 Thread Guenter Roeck
On Tue, Mar 22, 2022 at 04:40:20PM +0100, Christophe Leroy wrote: > Once init is done, initmem is freed forever so no need to > test system_state at every call to patch_instruction(). > > Use jump_label. > > This reduces by 2% the time needed to activate ftrace on an 8xx. > It also causes the q

[PATCH v1 3/4] powerpc/code-patching: Use jump_label for testing freed initmem

2022-03-22 Thread Christophe Leroy
Once init is done, initmem is freed forever so no need to test system_state at every call to patch_instruction(). Use jump_label. This reduces by 2% the time needed to activate ftrace on an 8xx. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/code-patching.h | 2 ++ arch/powerpc/l