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 <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Reviewed-by: Andrew Jones <[email protected]> Reviewed-by: Samuel Holland <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent fd73c01 commit d7f546c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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)