[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJF2gTSVxgc5kw22dfotoHF91HxyTKC4ETYLTskEfyn3rf=kCw@mail.gmail.com>
Date: Wed, 16 Oct 2019 07:29:34 +0800
From: Guo Ren <guoren@...nel.org>
To: Sebastian Andrzej Siewior <bigeasy@...utronix.de>
Cc: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
tglx@...utronix.de
Subject: Re: [PATCH 06/34] csky: Use CONFIG_PREEMPTION
Could CONFIG_PREEMPT_RT be supported in csky ? Any arch backend porting ?
On Wed, Oct 16, 2019 at 3:18 AM Sebastian Andrzej Siewior
<bigeasy@...utronix.de> wrote:
>
> From: Thomas Gleixner <tglx@...utronix.de>
>
> CONFIG_PREEMPTION is selected by CONFIG_PREEMPT and by CONFIG_PREEMPT_RT.
> Both PREEMPT and PREEMPT_RT require the same functionality which today
> depends on CONFIG_PREEMPT.
>
> Switch the entry code over to use CONFIG_PREEMPTION.
>
> Cc: Guo Ren <guoren@...nel.org>
> Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@...utronix.de>
> ---
> arch/csky/kernel/entry.S | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/csky/kernel/entry.S b/arch/csky/kernel/entry.S
> index a7a5b67df8989..0077063280000 100644
> --- a/arch/csky/kernel/entry.S
> +++ b/arch/csky/kernel/entry.S
> @@ -277,7 +277,7 @@ ENTRY(csky_irq)
> zero_fp
> psrset ee
>
> -#ifdef CONFIG_PREEMPT
> +#ifdef CONFIG_PREEMPTION
> mov r9, sp /* Get current stack pointer */
> bmaski r10, THREAD_SHIFT
> andn r9, r10 /* Get thread_info */
> @@ -294,7 +294,7 @@ ENTRY(csky_irq)
> mov a0, sp
> jbsr csky_do_IRQ
>
> -#ifdef CONFIG_PREEMPT
> +#ifdef CONFIG_PREEMPTION
> subi r12, 1
> stw r12, (r9, TINFO_PREEMPT)
> cmpnei r12, 0
> --
> 2.23.0
>
--
Best Regards
Guo Ren
ML: https://lore.kernel.org/linux-csky/
Powered by blists - more mailing lists