nds32: fix build error "relocation truncated to fit: R_NDS32_25_PCREL_RELA" when
[linux-2.6-microblaze.git] / arch / powerpc / kernel / setup_64.c
index b78f142..7a7ce8a 100644 (file)
@@ -346,6 +346,13 @@ void __init early_setup(unsigned long dt_ptr)
         */
        cpu_ready_for_interrupts();
 
+       /*
+        * We enable ftrace here, but since we only support DYNAMIC_FTRACE, it
+        * will only actually get enabled on the boot cpu much later once
+        * ftrace itself has been initialized.
+        */
+       this_cpu_enable_ftrace();
+
        DBG(" <- early_setup()\n");
 
 #ifdef CONFIG_PPC_EARLY_DEBUG_BOOTX