This repository has been archived by the owner on Apr 13, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RISCV: Disable timer interrupt in handler to fix nohz.
The timer interrupt pending bit is cleared in bbl while reprogramming the timer. This works fine unless we are in nohz mode. In nohz mode, the timer is not reprogrammed. Thus, the pending bits are not cleared leading to continuous timer interrupt firing and cpu stalls. Disable timer interrupt in interrupt handler to ignore the pending bit until next interrupt. Timer interrupt is enabled again before next timer event is set. The details of the stalls can be found in #127 Other possible ideas discussion: riscv-software-src/riscv-pk#108 Signed-off-by: Atish Patra <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
- Loading branch information