]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: factor out current_stack_pointer
authorMark Rutland <mark.rutland@arm.com>
Thu, 3 Nov 2016 20:23:05 +0000 (20:23 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 11 Nov 2016 18:25:43 +0000 (18:25 +0000)
commitd0016f7c154b5ef6f21dba74a627c6db38a20c82
treee47789a36980ca71cdc9c33f9790f73f31d21867
parent2a58877ee6f7d3e14f9fdc074abe24228359e38c
arm64: factor out current_stack_pointer

We define current_stack_pointer in <asm/thread_info.h>, though other
files and header relying upon it do not have this necessary include, and
are thus fragile to changes in the header soup.

Subsequent patches will affect the header soup such that directly
including <asm/thread_info.h> may result in a circular header include in
some of these cases, so we can't simply include <asm/thread_info.h>.

Instead, factor current_thread_info into its own header, and have all
existing users include this explicitly.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Laura Abbott <labbott@redhat.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/percpu.h
arch/arm64/include/asm/perf_event.h
arch/arm64/include/asm/stack_pointer.h [new file with mode: 0644]
arch/arm64/include/asm/thread_info.h
arch/arm64/kernel/return_address.c
arch/arm64/kernel/stacktrace.c
arch/arm64/kernel/traps.c