diff options
| author | Peixin Xie <peixin.xie@linux.spacemit.com> | 2026-08-07 19:24:32 -0600 |
|---|---|---|
| committer | Paul Walmsley <pjw@kernel.org> | 2026-08-07 19:24:32 -0600 |
| commit | 7e4cb63d61a7e0bef20f0d00e831c7fac06e4a1c (patch) | |
| tree | 24d99729fa94b0c06e0fd15ffccecc33751532c9 /scripts/stackusage | |
| parent | abcdefbe49655c1b8b12445f73e6116b4f123db2 (diff) | |
| download | linux-7e4cb63d61a7e0bef20f0d00e831c7fac06e4a1c.tar.gz linux-7e4cb63d61a7e0bef20f0d00e831c7fac06e4a1c.zip | |
riscv: acpi: Handle LPI architectural context loss flags
Commit 4785aa802853 ("cpuidle, ACPI: Evaluate LPI arch_flags for
broadcast timer") replaced the generic nonzero check for LPI
architectural context loss flags with arch_get_idle_state_flags().
RISC-V does not implement the helper, so it falls back to the stub
that returns 0. Consequently, CPUIDLE_FLAG_TIMER_STOP is not set when
an LPI state loses the hart timer context, preventing cpuidle from
using a broadcast timer for that state.
Implement the RISC-V helper and map the hart timer context loss flag
to CPUIDLE_FLAG_TIMER_STOP.
Fixes: 4785aa802853 ("cpuidle, ACPI: Evaluate LPI arch_flags for broadcast timer")
Cc: stable@vger.kernel.org
Acked-by: Sudeep Holla <sudeep.holla@kernel.org>
Reviewed-by: Yixun Lan <dlan@kernel.org>
Reviewed-by: Sunil V L <sunilvl@oss.qualcomm.com>
Reviewed-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Peixin Xie <peixin.xie@linux.spacemit.com>
Link: https://patch.msgid.link/20260803-riscv-acpi-lpi-timer-v3-1-520fa13732f5@linux.spacemit.com
Signed-off-by: Paul Walmsley <pjw@kernel.org>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions
