init/main.c | 9 +++++++++ 1 files changed, 9 insertions(+) Index: linux-latency-tracing.q/init/main.c =================================================================== --- linux-latency-tracing.q.orig/init/main.c +++ linux-latency-tracing.q/init/main.c @@ -108,6 +108,8 @@ extern void tc_init(void); enum system_states system_state; EXPORT_SYMBOL(system_state); +extern unsigned long preempt_max_latency; + /* * Boot command-line arguments */ @@ -544,6 +546,13 @@ asmlinkage void __init start_kernel(void acpi_early_init(); /* before LAPIC and SMP init */ +#ifdef CONFIG_LATENCY_TIMING + /* + * Start tracing now - the bootup traces arent too interesting: + */ + preempt_max_latency = 1000; +#endif + /* Do the rest non-__init'ed, we're now alive */ rest_init(); }