On Mon, 27 Jan 2014, Alexey Perevalov wrote:And what about "deferrable" possibility for hrtimers, do you consider it reasonable?On 01/21/2014 11:12 PM, John Stultz wrote:The timer cancel on set was added only to timerfd because timerfd is aThomas: Any thought here? Should we be trying to unify the timerfd flags
and the posix timer flags (specifically things like TIMER_CANCEL_ON_SET,
which is currently timerfd-only)? Should a deferrable flag be added to
the hrtimer core or left to the timer wheel?
non posix interface and we are halfways free to add stuff to
it. Adding extra flags to the real posix timer interfaces is a
different story.
The main reason of this was do not call user space timers on system idle, to safe power on embedded systems, especially in case of NOHZ.
What's the rationale for a deferrable flag for user space interfaces?
Thanks,
tglx