|
@@ -564,7 +564,7 @@ void prepare_ftrace_return(unsigned long *parent, unsigned long self_addr)
|
|
if (unlikely(atomic_read(¤t->tracing_graph_pause)))
|
|
if (unlikely(atomic_read(¤t->tracing_graph_pause)))
|
|
return;
|
|
return;
|
|
|
|
|
|
-#if CONFIG_PPC64
|
|
|
|
|
|
+#ifdef CONFIG_PPC64
|
|
/* non core kernel code needs to save and restore the TOC */
|
|
/* non core kernel code needs to save and restore the TOC */
|
|
if (REGION_ID(self_addr) != KERNEL_REGION_ID)
|
|
if (REGION_ID(self_addr) != KERNEL_REGION_ID)
|
|
return_hooker = (unsigned long)&mod_return_to_handler;
|
|
return_hooker = (unsigned long)&mod_return_to_handler;
|