Skip to content

[SYSINFO] Fixed readFreq for LoongArch64#3906

Merged
ptitSeb merged 1 commit into
ptitSeb:mainfrom
ksco:fix2
May 29, 2026
Merged

[SYSINFO] Fixed readFreq for LoongArch64#3906
ptitSeb merged 1 commit into
ptitSeb:mainfrom
ksco:fix2

Conversation

@ksco
Copy link
Copy Markdown
Collaborator

@ksco ksco commented May 29, 2026

We cannot use the "real" value from sysinfo because RDTSC opcode uses a "fake" rdtime.d.

We cannot use the "real" value from sysinfo because RDTSC opcode uses a "fake" rdtime.d.
@ptitSeb
Copy link
Copy Markdown
Owner

ptitSeb commented May 29, 2026

What do you mean by "fake"? To me, it looks like the frequency of the internal timer was not read correctly, and can be different from the main cpu frequency after all.

@ksco
Copy link
Copy Markdown
Collaborator Author

ksco commented May 29, 2026

Because it's not the freq, it's just a timer.

@ksco
Copy link
Copy Markdown
Collaborator Author

ksco commented May 29, 2026

We can also turn the timer to real freq by multiplying something, but I'm not really motivated to do that.

@ptitSeb ptitSeb merged commit 2d14666 into ptitSeb:main May 29, 2026
28 checks passed
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.

2 participants