]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - arch/x86/include/asm/thread_info.h
x86/asm/entry: Replace this_cpu_sp0() with current_top_of_stack() and fix it on x86_32
[mirror_ubuntu-artful-kernel.git] / arch / x86 / include / asm / thread_info.h
index a2fa1899494eb2b3e0cc62554843aa43b4b44c8d..7740edd56fed7d2cf3016fa91b79948e94848c99 100644 (file)
@@ -158,9 +158,7 @@ DECLARE_PER_CPU(unsigned long, kernel_stack);
 
 static inline struct thread_info *current_thread_info(void)
 {
-       struct thread_info *ti;
-       ti = (void *)(this_cpu_sp0() - THREAD_SIZE);
-       return ti;
+       return (struct thread_info *)(current_top_of_stack() - THREAD_SIZE);
 }
 
 static inline unsigned long current_stack_pointer(void)