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
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
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
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
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
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