这是indexloc提供的服务,不要输入任何密码
Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: abseil/abseil-cpp
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: aurel32/abseil-cpp
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Feb 29, 2024

  1. unscaledcycleclock: use RDTIME instead of RDCYCLE on RISC-V

    Starting with Linux 6.6 [1], RDCYCLE is a privileged instruction on
    RISC-V and can't be used directly from userland. There is a sysctl
    option to change that as a transition period, but it will eventually
    disappear.
    
    Use RDTIME instead, which while less accurate has the advantage of being
    synchronized between CPU (and thus monotonic) and of constant frequency.
    Therefore this change also fixes another issue caused by wrong time
    measurement when a process is rescheduled from one CPU to another [2].
    
    Given RDTIME uses a timer independent from the CPU, this patche removes
    the ABSL_INTERNAL_UNSCALED_CYCLECLOCK_FREQUENCY_IS_CPU_FREQUENCY define
    accordingly.
    
    This fixes the testsuite on riscv64, tested on a VisionFive 2 board.
    
    [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=cc4c07c89aada16229084eeb93895c95b7eabaa3
    [2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1025221
    aurel32 committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    a2483ce View commit details
    Browse the repository at this point in the history
Loading