REORG: clock: move the updates of cpu/mono time to clock.c
The entering_poll/leaving_poll/measure_idle functions that were hard
to classify and used to move to various locations have now been placed
into clock.c since it's precisely about time-keeping. The functions
were renamed to clock_*. The samp_time and idle_time values are now
static since there is no reason for them to be read from outside.
diff --git a/src/ev_poll.c b/src/ev_poll.c
index 9b93c92..dbfa262 100644
--- a/src/ev_poll.c
+++ b/src/ev_poll.c
@@ -202,11 +202,11 @@
/* now let's wait for events */
wait_time = wake ? 0 : compute_poll_timeout(exp);
- sched_entering_poll();
+ clock_entering_poll();
activity_count_runtime();
status = poll(poll_events, nbfd, wait_time);
clock_update_date(wait_time, status);
- sched_leaving_poll(wait_time, status);
+ clock_leaving_poll(wait_time, status);
thread_harmless_end();
thread_idle_end();