arm64: Remove the check for CONFIG_TINY_RCU
PATCH 1/1 arm64: Remove the check for CONFIG_TINY_RCU
Since the commit 4b3dc9679cf77 ("arm64: force CONFIG_SMP=y and remove redundant #ifdefs"), arm64 defaults to CONFIG_SMP but TINY_RCU is cofigured only for !SMP systems.
Remove the check for CONFIG_TINY_RCU as it should always be false.
--- arch/arm64/kernel/entry-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/kernel/entry-common.c +1 -1
@@ -40,7 +40,7 @@ static __always_inline void __enter_from_kernel_mode(struct pt_regs *regs) { regs->exit_rcu = false; -if (!IS_ENABLED (CONFIG_TINY_RCU ) &&is_idle_task (current)) { +if (is_idle_task (current)) {lockdep_hardirqs_off (CALLER_ADDR0 );ct_irq_enter ();trace_hardirqs_off_finish ();
Signature · 1 line
2.34.1
Will Deacon
maintainerQuoted 16 lines · Ryo Takakura
Since the commit
4b3dc9679cf77("arm64: forceCONFIG_SMP=yand remove redundant #ifdefs"), arm64 defaults toCONFIG_SMPbutTINY_RCUis cofigured only for !SMP systems.Remove the check for
CONFIG_TINY_RCUas it should always be false.Signed-off-by Ryo Takakura <[email protected]>--- arch/arm64/kernel/entry-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm64/kernel/entry-common.c +0
-0
arch/arm64/kernel/entry-common.c static __always_inline void __enter_from_kernel_mode(struct pt_regs *regs) · line 46
Quoted 8 lines
arch/arm64/kernel/entry-common.c +1
-1@@ -40,7 +40,7 @@ static __always_inline void __enter_from_kernel_mode(struct pt_regs *regs) { regs->exit_rcu = false; -if (!IS_ENABLED (CONFIG_TINY_RCU ) &&is_idle_task (current)) { +if (is_idle_task (current)) {lockdep_hardirqs_off (CALLER_ADDR0 );ct_irq_enter ();trace_hardirqs_off_finish ();
I think this code was deliberately written to follow kernel/entry/common.c as closely as possible, as we should be able to switch over to that at some point.
Come to think of it, Mark, what work is needed before we can move to the generic code? Is there anything you need a hand with?
Will
Hi Will,
Quoted 20 lines · Will Deacon
Quoted 19 lines · Ryo Takakura
Since the commit
4b3dc9679cf77("arm64: forceCONFIG_SMP=yand remove redundant #ifdefs"), arm64 defaults toCONFIG_SMPbutTINY_RCUis cofigured only for !SMP systems.Remove the check for
CONFIG_TINY_RCUas it should always be false.Signed-off-by Ryo Takakura <[email protected]>--- arch/arm64/kernel/entry-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm64/kernel/entry-common.c +0
-0@@ -40,7 +40,7 @@ static __always_inline void __enter_from_kernel_mode(struct pt_regs *regs) { regs->exit_rcu = false;
Quoted 9 lines
arch/arm64/kernel/entry-common.c static __always_inline void __enter_from_kernel_mode(struct pt_regs *regs) · line 46
Quoted 5 lines
arch/arm64/kernel/entry-common.c +1
-1-if (!IS_ENABLED (CONFIG_TINY_RCU ) &&is_idle_task (current)) { +if (is_idle_task (current)) {lockdep_hardirqs_off (CALLER_ADDR0 );ct_irq_enter ();trace_hardirqs_off_finish ();I think this code was deliberately written to follow
kernel/entry/common.cas closely as possible, as we should be able to switch over to that at some point.
Oh I see, thanks for taking a look at the patch!
Quoted 4 lines
Come to think of it, Mark, what work is needed before we can move to the generic code? Is there anything you need a hand with?
Will
If there is anything I can be of help, let me know!
Sincerely,
Ryo Takakura