Skip to content

riscv: add Sscpuutil extension support for frequency invariance - #26

Open
Estherrzhang wants to merge 1 commit into
XUANTIE-RV:linux-6.6from
Estherrzhang:sscpuutil-pr
Open

riscv: add Sscpuutil extension support for frequency invariance#26
Estherrzhang wants to merge 1 commit into
XUANTIE-RV:linux-6.6from
Estherrzhang:sscpuutil-pr

Conversation

@Estherrzhang

Copy link
Copy Markdown

Add support for the RISC-V Sscpuutil (CPU Utilization) extension to provide Frequency Invariance Engine (FIE) for the scheduler.

The extension provides two CSR counters: corecyc (0xc30) increments at actual CPU frequency, acttime (0xc31) increments at a fixed reference rate. Their ratio gives the current-to-nominal frequency scaling factor used by the scheduler for accurate load tracking.

Add support for the RISC-V Sscpuutil (CPU Utilization) extension to
provide Frequency Invariance Engine (FIE) for the scheduler.

The extension provides two CSR counters: corecyc (0xc30) increments at
actual CPU frequency, acttime (0xc31) increments at a fixed reference
rate. Their ratio gives the current-to-nominal frequency scaling factor
used by the scheduler for accurate load tracking.

Signed-off-by: Esther Z <zhangfengxue.zfx@alibaba-inc.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant