Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 5e9f0c4

Browse files
ddissPeter Zijlstra
authored andcommitted
sched: remove unused __HAVE_THREAD_FUNCTIONS hook support
__HAVE_THREAD_FUNCTIONS could be defined by architectures wishing to provide their own task_thread_info(), task_stack_page(), setup_thread_stack() and end_of_stack() hooks. Commit cf8e865 ("arch: Remove Itanium (IA-64) architecture") removed the last upstream consumer of __HAVE_THREAD_FUNCTIONS, so change the remaining !CONFIG_THREAD_INFO_IN_TASK && !__HAVE_THREAD_FUNCTIONS conditionals to only check for the former case. Signed-off-by: David Disseldorp <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Ard Biesheuvel <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 4999491 commit 5e9f0c4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/linux/sched.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1898,7 +1898,7 @@ extern unsigned long init_stack[THREAD_SIZE / sizeof(unsigned long)];
18981898

18991899
#ifdef CONFIG_THREAD_INFO_IN_TASK
19001900
# define task_thread_info(task) (&(task)->thread_info)
1901-
#elif !defined(__HAVE_THREAD_FUNCTIONS)
1901+
#else
19021902
# define task_thread_info(task) ((struct thread_info *)(task)->stack)
19031903
#endif
19041904

include/linux/sched/task_stack.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ static __always_inline unsigned long *end_of_stack(const struct task_struct *tas
3333
#endif
3434
}
3535

36-
#elif !defined(__HAVE_THREAD_FUNCTIONS)
36+
#else
3737

3838
#define task_stack_page(task) ((void *)(task)->stack)
3939

0 commit comments

Comments
 (0)