]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: mm: update CONTEXTIDR register to contain PID of current process
authorWill Deacon <will.deacon@arm.com>
Thu, 17 Jan 2013 12:31:45 +0000 (12:31 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 11 Feb 2013 18:24:18 +0000 (18:24 +0000)
commitb6516ac6ca5a740c6ce63f532f2e2a9dc3ad9688
treef588db6111ee97aeddd69e05646cd49c31b353a0
parentc0f1e749fa2729b4df40aaf2964c31fda541012a
arm64: mm: update CONTEXTIDR register to contain PID of current process

This patch is a port of b9792c743 ("ARM: 7445/1: mm: update CONTEXTIDR
register to contain PID of current process") from ARM that introduces a
new Kconfig option which, when enabled, causes the kernel to write the
PID of the current task into the CONTEXTIDR register on context switch.
This is useful when analysing hardware trace, since writes to this
register can be configured to emit an event into the trace stream.

Signed-off-by: Will Deacon <will.deacon@arm.com>
[catalin.marinas@arm.com: contextidr_thread_switch() moved to mmu_context.h]
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/Kconfig.debug
arch/arm64/include/asm/mmu_context.h
arch/arm64/kernel/process.c