]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - include/linux/sched.h
sched/headers: Move kstack_end() from <linux/sched.h> to <linux/sched/task_stack.h>
[mirror_ubuntu-artful-kernel.git] / include / linux / sched.h
index 5f2267e41fdecc75b40cebb77dce88948a53f300..309eb76b7eab189a8ba8e88a9a3273b51a663032 100644 (file)
@@ -1360,16 +1360,6 @@ static inline struct thread_info *task_thread_info(struct task_struct *task)
 # define task_thread_info(task)        ((struct thread_info *)(task)->stack)
 #endif
 
-#ifndef __HAVE_ARCH_KSTACK_END
-static inline int kstack_end(void *addr)
-{
-       /* Reliable end of stack detection:
-        * Some APM bios versions misalign the stack
-        */
-       return !(((unsigned long)addr+sizeof(void*)-1) & (THREAD_SIZE-sizeof(void*)));
-}
-#endif
-
 extern struct pid_namespace init_pid_ns;
 
 /*