Skip to contentSkip to conversation

Recent changes (master)

PATCH Jens Axboe 1 participant 1 message Oct 23, 2023 RISC-V

lore
Share & tools
lore

Jens Axboe

author
#0 lore raw

The following changes since commit f8735bf1fb208bc1b6b1ca818413c9e41944e813:

Merge branch 'master' of https://github.com/michalbiesek/fio (2023-10-20 04:32:39 -0600)

are available in the Git repository at:

git://git.kernel.dk/fio.git master

for you to fetch changes up to d4fdbe3fa91bbcc9583886af35b56cc7b691f8fa:

Merge branch 'fix-riscv64-cpu-clock' of https://github.com/gilbsgilbs/fio (2023-10-22 18:52:51 -0600)

----------------------------------------------------------------
Gilbert Gilb's (1):
riscv64: get clock from rdtime instead of rdcycle

Jens Axboe (1):
Merge branch 'fix-riscv64-cpu-clock' of https://github.com/gilbsgilbs/fio

 arch/arch-riscv64.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

---

Diff of recent changes:

arch/arch-riscv64.h +1 -1
index 9b8fd001..8ac33fa3 100644
@@ -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