* [PATCH] ARM: Remove redundant arch_cpu_idle_prepare()
@ 2022-12-01 3:13 Yajun Deng
2022-12-30 9:16 ` Yajun Deng
0 siblings, 1 reply; 2+ messages in thread
From: Yajun Deng @ 2022-12-01 3:13 UTC (permalink / raw)
To: rmk+kernel, keescook, gregkh, Jason, djwong, ebiederm,
thunder.leizhen, ardb, wangkefeng.wang
Cc: linux-arm-kernel, linux-kernel, Yajun Deng
arch_cpu_idle_prepare() was only called by cpu_startup_entry() and it is
just a wrapper for local_fiq_enable().
The local_fiq_enable() was already called before cpu_startup_entry().
So remove redundant arch_cpu_idle_prepare().
Signed-off-by: Yajun Deng <yajun.deng@linux.dev>
---
arch/arm/kernel/process.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c
index f811733a8fc5..e3f490ab95f4 100644
--- a/arch/arm/kernel/process.c
+++ b/arch/arm/kernel/process.c
@@ -81,11 +81,6 @@ void arch_cpu_idle(void)
raw_local_irq_enable();
}
-void arch_cpu_idle_prepare(void)
-{
- local_fiq_enable();
-}
-
void arch_cpu_idle_enter(void)
{
ledtrig_cpu(CPU_LED_IDLE_START);
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] ARM: Remove redundant arch_cpu_idle_prepare()
2022-12-01 3:13 [PATCH] ARM: Remove redundant arch_cpu_idle_prepare() Yajun Deng
@ 2022-12-30 9:16 ` Yajun Deng
0 siblings, 0 replies; 2+ messages in thread
From: Yajun Deng @ 2022-12-30 9:16 UTC (permalink / raw)
To: rmk+kernel, keescook, gregkh, Jason, djwong, ebiederm,
thunder.leizhen, ardb, wangkefeng.wang
Cc: linux-arm-kernel, linux-kernel
December 1, 2022 11:13 AM, "Yajun Deng" <yajun.deng@linux.dev> wrote:
> arch_cpu_idle_prepare() was only called by cpu_startup_entry() and it is
> just a wrapper for local_fiq_enable().
>
> The local_fiq_enable() was already called before cpu_startup_entry().
>
> So remove redundant arch_cpu_idle_prepare().
>
> Signed-off-by: Yajun Deng <yajun.deng@linux.dev>
> ---
> arch/arm/kernel/process.c | 5 -----
> 1 file changed, 5 deletions(-)
>
> diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c
> index f811733a8fc5..e3f490ab95f4 100644
> --- a/arch/arm/kernel/process.c
> +++ b/arch/arm/kernel/process.c
> @@ -81,11 +81,6 @@ void arch_cpu_idle(void)
> raw_local_irq_enable();
> }
>
> -void arch_cpu_idle_prepare(void)
> -{
> - local_fiq_enable();
> -}
> -
> void arch_cpu_idle_enter(void)
> {
> ledtrig_cpu(CPU_LED_IDLE_START);
> --
> 2.25.1
Ping.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-12-30 9:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-01 3:13 [PATCH] ARM: Remove redundant arch_cpu_idle_prepare() Yajun Deng
2022-12-30 9:16 ` Yajun Deng
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox