diff options
| author | Shell <[email protected]> | 2024-07-15 12:06:17 +0800 |
|---|---|---|
| committer | Shell <[email protected]> | 2024-07-15 12:06:39 +0800 |
| commit | 65ffe4e13ef52d007d83c93467871c529705b522 (patch) | |
| tree | efa48860130e4f8b6b0ac1e33d4cc07548ad047c /components/lwp/vdso/SConscript | |
| parent | ca4645000a3d64c260bd6b15200bdcce5ae8b330 (diff) | |
[libcpu/rv64] feat: unify tick.c
The changes unify the tick.c implementations for all risc-v64
architectures, leveraging the CPUTIME feature. This refactoring was
necessary to streamline the codebase, and ensure consistent timer
handling across different platforms.
Changes:
- Updated `Kconfig` in `bsp/cvitek/cv18xx_risc-v` to fix formatting issues.
- Updated .config for BSPs to update `CPUTIME_TIMER_FREQ`
- Updated header of for API `riscv_cputime_init`
- Initialized riscv timer on `rt_hw_tick_init`
- Refactored `tick.c` and `tick.h` in `libcpu/risc-v/t-head/c906` and `libcpu/risc-v/virt64`:
- Replaced direct use of `rdtime` with `clock_cpu_gettime`.
- Removed redundant timer frequency definitions.
- Added static assertions to check the value of `CPUTIME_TIMER_FREQ`.
- Initialized `tick_cycles` based on `CPUTIME_TIMER_FREQ`.
- Integrated `ktime` support for tick initialization.
Signed-off-by: Shell <[email protected]>
Reviewed-on: https://github.com/RT-Thread/rt-thread/pull/9164
Reviewed-by: Chen Wang <[email protected]>
Diffstat (limited to 'components/lwp/vdso/SConscript')
0 files changed, 0 insertions, 0 deletions
