Skip to content

Commit d7f546c

Browse files
vlsunildlezcano
authored andcommitted
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 <sunilvl@ventanamicro.com> Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> Reviewed-by: Samuel Holland <samuel.holland@sifive.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20230927170015.295232-5-sunilvl@ventanamicro.com
1 parent fd73c01 commit d7f546c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/clocksource/timer-riscv.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,10 @@ TIMER_OF_DECLARE(riscv_timer, "riscv", riscv_timer_init_dt);
212212
#ifdef CONFIG_ACPI
213213
static int __init riscv_timer_acpi_init(struct acpi_table_header *table)
214214
{
215+
struct acpi_table_rhct *rhct = (struct acpi_table_rhct *)table;
216+
217+
riscv_timer_cannot_wake_cpu = rhct->flags & ACPI_RHCT_TIMER_CANNOT_WAKEUP_CPU;
218+
215219
return riscv_timer_init_common();
216220
}
217221

0 commit comments

Comments
 (0)