RE: CONFIG_PRINTK_TIME woes

Luck, Tony
2005-08-23T14:07:31Z

>I'd hate to have to test for something for CONFIG_PRINTK_TIME
>every time sched_clock() is being called.

Me too.

>The quick fix would seem to be to only allow CONFIG_PRINTK_TIME
>from kernel cmdline to make it happen a bit later. So basically
>make int printk_time = 0 until command line is evaluated.

Good thought, but this won't work for ia64 in the hot-plug cpu case.
There are a couple of printk() calls by new cpus as they boot before
they have set-up their per-cpu areas. So there is no global state
that can be checked to decide whether it is safe for printk() to
call sched_clock().

-Tony