summaryrefslogtreecommitdiffstats
path: root/drivers/perf
diff options
context:
space:
mode:
authorMark Rutland <mark.rutland@arm.com>2016-09-08 14:55:39 +0200
committerWill Deacon <will.deacon@arm.com>2016-09-09 12:43:50 +0200
commitd3ea42aad584493b99c109e59ced77db145a68e1 (patch)
treea9a5c116c242eab0415e82b1a969ad0642f74364 /drivers/perf
parentarm64: simplify sysreg manipulation (diff)
downloadlinux-d3ea42aad584493b99c109e59ced77db145a68e1.tar.xz
linux-d3ea42aad584493b99c109e59ced77db145a68e1.zip
arm64: simplify contextidr_thread_switch
When CONFIG_PID_IN_CONTEXTIDR is not selected, we use an empty stub definition of contextidr_thread_switch(). As everything we rely upon exists regardless of CONFIG_PID_IN_CONTEXTIDR, we don't strictly require an empty stub. By using IS_ENABLED() rather than ifdeffery, we avoid duplication, and get compiler coverage on all the code even when CONFIG_PID_IN_CONTEXTIDR is not selected and the code is optimised away. Signed-off-by: Mark Rutland <mark.rutland@arm.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will.deacon@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'drivers/perf')
0 files changed, 0 insertions, 0 deletions