]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
powerpc: Rename __get_SP() to current_stack_pointer()
authorAnton Blanchard <anton@samba.org>
Mon, 13 Oct 2014 08:41:39 +0000 (19:41 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 15 Oct 2014 00:23:20 +0000 (11:23 +1100)
Michael points out that __get_SP() is a pretty horrible
function name. Let's give it a better name.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/perf_event.h
arch/powerpc/include/asm/reg.h
arch/powerpc/kernel/irq.c
arch/powerpc/kernel/misc.S
arch/powerpc/kernel/ppc_ksyms.c
arch/powerpc/kernel/process.c
arch/powerpc/kernel/stacktrace.c

index b058568a850d63ca52af55c969bf80298a7ecaa5..8bf1b6351716ee424d80bf240bbcea54abc35c9e 100644 (file)
@@ -34,7 +34,7 @@
        do {                                                    \
                (regs)->result = 0;                             \
                (regs)->nip = __ip;                             \
-               (regs)->gpr[1] = __get_SP();                    \
+               (regs)->gpr[1] = current_stack_pointer();       \
                asm volatile("mfmsr %0" : "=r" ((regs)->msr));  \
        } while (0)
 #endif
index e539d7e714513df85e92ef6b1b8a9e52af61da7d..c998279bd85b1b5cec6cf719b88fadc90aacd79f 100644 (file)
@@ -1265,7 +1265,7 @@ static inline unsigned long mfvtb (void)
 
 #define proc_trap()    asm volatile("trap")
 
-extern unsigned long __get_SP(void);
+extern unsigned long current_stack_pointer(void);
 
 extern unsigned long scom970_read(unsigned int address);
 extern void scom970_write(unsigned int address, unsigned long value);
index 8eb857f216c1ba1404a4e3b153a2077b7f7880c4..c14383575fe8f68ed4224ef097acfbbf93189cc2 100644 (file)
@@ -466,7 +466,7 @@ static inline void check_stack_overflow(void)
 #ifdef CONFIG_DEBUG_STACKOVERFLOW
        long sp;
 
-       sp = __get_SP() & (THREAD_SIZE-1);
+       sp = current_stack_pointer() & (THREAD_SIZE-1);
 
        /* check for stack overflow: is there less than 2KB free? */
        if (unlikely(sp < (sizeof(struct thread_info) + 2048))) {
index 120deb713bc813d36189488a668fdd7192f18aba..0d432194c01825286b4f629ad1637cdbeed32a22 100644 (file)
@@ -115,6 +115,6 @@ _GLOBAL(longjmp)
        mr      r3,r4
        blr
 
-_GLOBAL(__get_SP)
+_GLOBAL(current_stack_pointer)
        PPC_LL  r3,0(r1)
        blr
index 9d84efbd7b7a8b6a8445bc2a62040e61793edef0..202963ee013a81c76b62dcbd6bc59c0c8cbc9844 100644 (file)
@@ -42,4 +42,4 @@ EXPORT_SYMBOL(giveup_spe);
 EXPORT_SYMBOL(epapr_hypercall_start);
 #endif
 
-EXPORT_SYMBOL(__get_SP);
+EXPORT_SYMBOL(current_stack_pointer);
index 3cc64398810177fbcdf0f60178549ddedd49da44..923cd2daba89d88f37299b0a0f19803cdacb2532 100644 (file)
@@ -1545,7 +1545,7 @@ void show_stack(struct task_struct *tsk, unsigned long *stack)
                tsk = current;
        if (sp == 0) {
                if (tsk == current)
-                       sp = __get_SP();
+                       sp = current_stack_pointer();
                else
                        sp = tsk->thread.ksp;
        }
index 7f65baec29f64eb873d0c0c831da34011d5f2063..ea43a347a1044c37a800d7f78487e6f238078c94 100644 (file)
@@ -50,7 +50,7 @@ void save_stack_trace(struct stack_trace *trace)
 {
        unsigned long sp;
 
-       sp = __get_SP();
+       sp = current_stack_pointer();
 
        save_context_stack(trace, sp, current, 1);
 }