Skip to content

Commit

Permalink
Merge branch 'fix-riscv64-cpu-clock' of https://github.com/gilbsgilbs…
Browse files Browse the repository at this point in the history
…/fio

* 'fix-riscv64-cpu-clock' of https://github.com/gilbsgilbs/fio:
  riscv64: get clock from `rdtime` instead of `rdcycle`
  • Loading branch information
axboe committed Oct 23, 2023
2 parents f8735bf + 577b85e commit d4fdbe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arch-riscv64.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ static inline unsigned long long get_cpu_clock(void)
{
unsigned long val;

asm volatile("rdcycle %0" : "=r"(val));
asm volatile("rdtime %0" : "=r"(val));
return val;
}
#define ARCH_HAVE_CPU_CLOCK
Expand Down

0 comments on commit d4fdbe3

Please sign in to comment.