OSDN Git Service

arm64: Rename get_thread_info()
authorJulien Thierry <julien.thierry@arm.com>
Fri, 22 Feb 2019 09:32:50 +0000 (09:32 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 26 Feb 2019 16:57:59 +0000 (16:57 +0000)
commit4caf8758b60b6f7f9773fd1d265cb5a7cf935c97
tree94cfb17194e4b36aef489e9564cf7c8d63fb742d
parent47224e51ab778e918257b96c1a1b3735e4b8c15d
arm64: Rename get_thread_info()

The assembly macro get_thread_info() actually returns a task_struct and is
analogous to the current/get_current macro/function.

While it could be argued that thread_info sits at the start of
task_struct and the intention could have been to return a thread_info,
instances of loads from/stores to the address obtained from
get_thread_info() use offsets that are generated with
offsetof(struct task_struct, [...]).

Rename get_thread_info() to state it returns a task_struct.

Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Julien Thierry <julien.thierry@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/asm-uaccess.h
arch/arm64/include/asm/assembler.h
arch/arm64/kernel/entry.S