[PATCH] sched: generalize CONFIG_IRQ_TIME_ACCOUNTING for X86 and ARM
Russell King - ARM Linux
linux at arm.linux.org.uk
Wed Feb 8 15:24:57 UTC 2012
On Wed, Feb 08, 2012 at 07:15:26AM -0800, Dmitry Antipov wrote:
> On 02/08/2012 05:18 AM, Russell King - ARM Linux wrote:
>> Why are you placing this here? sched_clock is available from the point
>> that it's registered, which should be before the first sched_clock()
> This is just because I'm thinking about:
> if (read_sched_clock == jiffy_sched_clock_read)
> setup_sched_clock(jiffy_sched_clock_read, 32, HZ);
> else if (!no_sched_irq_time)
> I suppose that "fine granularity task irq time accounting"
> makes no sense if sched_clock() granularity is poor.
Let me put it a different way - is there a reason not to do this in
setup_sched_clock() so that it becomes available as soon as sched_clock()
has been initialized by a platform?
More information about the linaro-dev