mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-03 12:34:12 +00:00
693a2b5421
The function was only still used for reading the execution time of idle threads of CPUs. Certainly, it is technically fine and more performant to read these values directly from the kernel objects without doing a syscall. However, calling cpu_pool() for it provides read and write access to a lot more than only the execution time values. The interface via which Core directly reads state of the kernel should be as narrow and specific as possible. Perspectively, we want to get rid of the cpu_pool() accessor anyway. Therefore this commit introduces Kernel::read_idle_thread_execution_time(cpu_idx) as replacement. The function is implemented in kernel code and called by Core in platform.cc. Ref #4217 |
||
---|---|---|
.. | ||
bootstrap | ||
core | ||
include | ||
lib | ||
test | ||
timer/hw |