OK, if the clockevents core code takes care of that then fine.
Of course one could claim that the sched_clock() code could be called
needlessly when frequently entering and leaving idle mode. That's why
I've used a simple timer for this purpose so far, which also makes the
implementation and its algorithm constraint workaround close together.
Nicolas
--