[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <mhng-d7d9cb6c-3d07-4286-aa68-e99df654a92b@palmer-ri-x1c9a>
Date: Wed, 26 Apr 2023 11:45:03 -0700 (PDT)
From: Palmer Dabbelt <palmer@...belt.com>
To: sunilvl@...tanamicro.com
CC: linux-doc@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-riscv@...ts.infradead.org, linux-acpi@...r.kernel.org,
linux-crypto@...r.kernel.org, platform-driver-x86@...r.kernel.org,
llvm@...ts.linux.dev, corbet@....net,
Paul Walmsley <paul.walmsley@...ive.com>,
aou@...s.berkeley.edu, lenb@...nel.org, daniel.lezcano@...aro.org,
tglx@...utronix.de, qianweili@...wei.com, wangzhou1@...ilicon.com,
herbert@...dor.apana.org.au, Marc Zyngier <maz@...nel.org>,
luzmaximilian@...il.com, hdegoede@...hat.com, markgross@...nel.org,
nathan@...nel.org, ndesaulniers@...gle.com, trix@...hat.com,
rafael@...nel.org, davem@...emloft.net, sunilvl@...tanamicro.com,
rafael.j.wysocki@...el.com,
Conor Dooley <conor.dooley@...rochip.com>,
ajones@...tanamicro.com
Subject: Re: [PATCH V4 10/23] RISC-V: smpboot: Create wrapper smp_setup()
On Tue, 04 Apr 2023 11:20:24 PDT (-0700), sunilvl@...tanamicro.com wrote:
> smp_setup() currently assumes DT-based platforms. To enable ACPI,
> first make this a wrapper function and move existing code to
> a separate DT-specific function.
>
> Signed-off-by: Sunil V L <sunilvl@...tanamicro.com>
> Acked-by: Rafael J. Wysocki <rafael.j.wysocki@...el.com>
> Reviewed-by: Conor Dooley <conor.dooley@...rochip.com>
> Reviewed-by: Andrew Jones <ajones@...tanamicro.com>
> ---
> arch/riscv/kernel/smpboot.c | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/arch/riscv/kernel/smpboot.c b/arch/riscv/kernel/smpboot.c
> index 00b53913d4c6..26214ddefaa4 100644
> --- a/arch/riscv/kernel/smpboot.c
> +++ b/arch/riscv/kernel/smpboot.c
> @@ -70,7 +70,7 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
> }
> }
>
> -void __init setup_smp(void)
> +static void __init of_parse_and_init_cpus(void)
> {
> struct device_node *dn;
> unsigned long hart;
> @@ -116,6 +116,11 @@ void __init setup_smp(void)
> }
> }
>
> +void __init setup_smp(void)
> +{
> + of_parse_and_init_cpus();
> +}
> +
> static int start_secondary_cpu(int cpu, struct task_struct *tidle)
> {
> if (cpu_ops[cpu]->cpu_start)
Reviewed-by: Palmer Dabbelt <palmer@...osinc.com>
Powered by blists - more mailing lists