Skip to content

Commit dcbe028

Browse files
mrutland-armctmarinas
authored andcommitted
arm64: thread_info remove stale items
We have a comment claiming __switch_to() cares about where cpu_context is located relative to cpu_domain in thread_info. However arm64 has never had a thread_info::cpu_domain field, and neither __switch_to nor cpu_switch_to care where the cpu_context field is relative to others. Additionally, the init_thread_info alias is never used anywhere in the kernel, and will shortly become problematic when thread_info is moved into task_struct. This patch removes both. Signed-off-by: Mark Rutland <mark.rutland@arm.com> Tested-by: Laura Abbott <labbott@redhat.com> Cc: James Morse <james.morse@arm.com> Cc: Will Deacon <will.deacon@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
1 parent dc3d2a6 commit dcbe028

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎arch/arm64/include/asm/thread_info.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ typedef unsigned long mm_segment_t;
4242

4343
/*
4444
* low level task data that entry.S needs immediate access to.
45-
* __switch_to() assumes cpu_context follows immediately after cpu_domain.
4645
*/
4746
struct thread_info {
4847
unsigned long flags; /* low level flags */
@@ -60,7 +59,6 @@ struct thread_info {
6059
.addr_limit = KERNEL_DS, \
6160
}
6261

63-
#define init_thread_info (init_thread_union.thread_info)
6462
#define init_stack (init_thread_union.stack)
6563

6664
/*

0 commit comments

Comments
 (0)