From: Sunil V L Date: Wed, 27 Sep 2023 17:00:15 +0000 (+0530) Subject: clocksource/timer-riscv: ACPI: Add timer_cannot_wakeup_cpu X-Git-Tag: io_uring-6.7-2023-11-10~97^2^2~3 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=d7f546c751e8c873302331af6a203ee61f894e9d;p=linux-2.6-block.git clocksource/timer-riscv: ACPI: Add timer_cannot_wakeup_cpu The timer capability to wakeup the cpu irrespective of its idle state is provided by the flag in RHCT. Update the timer code to set this flag. Signed-off-by: Sunil V L Reviewed-by: Conor Dooley Reviewed-by: Andrew Jones Reviewed-by: Samuel Holland Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20230927170015.295232-5-sunilvl@ventanamicro.com --- diff --git a/drivers/clocksource/timer-riscv.c b/drivers/clocksource/timer-riscv.c index da3071b387eb..50198657230e 100644 --- a/drivers/clocksource/timer-riscv.c +++ b/drivers/clocksource/timer-riscv.c @@ -212,6 +212,10 @@ TIMER_OF_DECLARE(riscv_timer, "riscv", riscv_timer_init_dt); #ifdef CONFIG_ACPI static int __init riscv_timer_acpi_init(struct acpi_table_header *table) { + struct acpi_table_rhct *rhct = (struct acpi_table_rhct *)table; + + riscv_timer_cannot_wake_cpu = rhct->flags & ACPI_RHCT_TIMER_CANNOT_WAKEUP_CPU; + return riscv_timer_init_common(); }