On Sun, May 30, 2010 at 12:35:58AM -0700, Kevin Cernekee wrote: > diff --git a/arch/mips/kernel/smp.c b/arch/mips/kernel/smp.c > index 6cdca19..bf8923f 100644 > --- a/arch/mips/kernel/smp.c > +++ b/arch/mips/kernel/smp.c > @@ -219,6 +220,10 @@ int __cpuinit __cpu_up(unsigned int cpu) > > cpu_set(cpu, cpu_online_map); > > + /* Flush out any buffered log messages from the new CPU */ > + if (try_acquire_console_sem() == 0) > + release_console_sem(); > + > return 0; > } > Since this is entirely generic why not just have kernel/printk.c register a hotcpu notifier and handle this in the CPU_ONLINE case?