Re: [PATCH 01/18] move do_timer() from kernel/timer.c intokernel/time/timekeeping.c

From: Peter Zijlstra
Date: Tue Jan 25 2011 - 11:51:26 EST


On Tue, 2011-01-25 at 11:34 +0100, Peter Zijlstra wrote:

> Something like the (completely untested) below would do I guess:

> @@ -8172,6 +8180,8 @@ void __init sched_init(void)
> init_idle(current, smp_processor_id());
>
> calc_load_update = jiffies + LOAD_FREQ;
> + global_load_timer.slack = 0;
> + mod_timer(&global_load_timer, calc_load_update + 10);
>
> /*
> * During early bootup we pretend to be a normal task:

OK, so calling mod_timer() before init_timers() is _not_ a good idea ;-)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/