Messages in this thread | | | Date | Tue, 23 May 2023 14:01:09 +0200 | From | Andrew Jones <> | Subject | Re: [PATCH V6 09/21] RISC-V: ACPI: Cache and retrieve the RINTC structure |
| |
On Mon, May 15, 2023 at 11:19:16AM +0530, Sunil V L wrote: > RINTC structures in the MADT provide mapping between the hartid > and the CPU. This is required many times even at run time like > cpuinfo. So, instead of parsing the ACPI table every time, cache > the RINTC structures and provide a function to get the correct > RINTC structure for a given cpu. > > Signed-off-by: Sunil V L <sunilvl@ventanamicro.com> > Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> > --- > arch/riscv/include/asm/acpi.h | 10 ++++++++ > arch/riscv/kernel/acpi.c | 45 +++++++++++++++++++++++++++++++++++ > arch/riscv/kernel/setup.c | 4 ++++ > 3 files changed, 59 insertions(+)
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
| |