As part of the effort to reduce the code duplication between _THIS_IP_
and current_text_addr(), let's consolidate callers of
current_text_addr() to use _THIS_IP_.
Link: http://lkml.kernel.org/r/20180801185331.39535-1-ndesaulniers@google.com
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Rich Felker <dalias@libc.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
 
 #include <asm/ptrace.h>
 #include <asm/string.h>
+#include <linux/kernel.h>
 
 /*
  * KEXEC_SOURCE_MEMORY_LIMIT maximum page get_free_page can return.
                __asm__ __volatile__ ("stc gbr, %0" : "=r" (newregs->gbr));
                __asm__ __volatile__ ("stc sr, %0" : "=r" (newregs->sr));
 
-               newregs->pc = (unsigned long)current_text_addr();
+               newregs->pc = _THIS_IP_;
        }
 }
 #else
 
         * time this function makes its first function call.
         */
        if (!pc || !prev)
-               pc = (unsigned long)current_text_addr();
+               pc = _THIS_IP_;
 
 #ifdef CONFIG_FUNCTION_GRAPH_TRACER
        /*