powerpc: Rename __get_SP() to current_stack_pointer()
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>
This commit is contained in:

committed by
Michael Ellerman

parent
bfe9a2cfe9
commit
acf620ecf5
@@ -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))) {
|
||||
|
Reference in New Issue
Block a user