diff options
author | Anton Blanchard <anton@samba.org> | 2014-10-13 10:41:39 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2014-10-15 02:23:20 +0200 |
commit | acf620ecf56cfc4edaffaf158250e128539cdd26 (patch) | |
tree | d2ec25a6890d89232feb266f6dc815064ca3f155 /arch/powerpc/kernel/irq.c | |
parent | powerpc: Reimplement __get_SP() as a function not a define (diff) | |
download | linux-acf620ecf56cfc4edaffaf158250e128539cdd26.tar.xz linux-acf620ecf56cfc4edaffaf158250e128539cdd26.zip |
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>
Diffstat (limited to 'arch/powerpc/kernel/irq.c')
-rw-r--r-- | arch/powerpc/kernel/irq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c index 8eb857f216c1..c14383575fe8 100644 --- a/arch/powerpc/kernel/irq.c +++ b/arch/powerpc/kernel/irq.c @@ -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))) { |