* Dmitry Antipov dmitry.antipov@linaro.org wrote:
--- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -757,18 +757,20 @@ static DEFINE_PER_CPU(u64, cpu_hardirq_time); static DEFINE_PER_CPU(u64, cpu_softirq_time); static DEFINE_PER_CPU(u64, irq_start_time); -static int sched_clock_irqtime; -void enable_sched_clock_irqtime(void) -{
- sched_clock_irqtime = 1;
-} +/* -1 if not initialized, 0 if disabled with "noirqtime" kernel option
- or after unstable clock was detected, 1 if enabled and active.
- */
Please use the customary (multi-line) comment style:
/* * Comment ..... * ...... goes here. */
specified in Documentation/CodingStyle.
+int sched_clock_irqtime = -1;
should be turned into __read_mostly I guess.
Thanks,
Ingo