Commit graph

2 commits

Author SHA1 Message Date
Robert Clausecker
05515f1759 benchmarks/libcpucycles: report actual CPU frequency if supported
This uses sched_getcpu(2) to find the CPU we are scheduled on and then
cpufreq(4) to find the frequency of that CPU.  The caller is responsible
for pinning the thread to one CPU and/or disabling frequency scaling if
a consistent result is required.
2024-11-25 11:22:04 +01:00
Robert Clausecker
1000433258 benchmarks/libcpucycles: fix jmpbuf / sigjmpbuf confusion
I forgot to include this patch originally.  While the warning is
harmless (sigjmp_buf and jmp_buf have the same layout on FreeBSD),
it might not be on downstream ports consumers like DragonflyBSD.
2024-11-06 16:14:31 +01:00