summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/caam/intern.h
diff options
context:
space:
mode:
authorDaniel Thompson <daniel.thompson@linaro.org>2015-03-26 12:23:23 -0700
committerIngo Molnar <mingo@kernel.org>2015-03-27 08:33:57 +0100
commitcf7c9c170787d6870af54684822f58acc00a966c (patch)
tree7fc5b9fe286c4f7fb5a8b54031b4dbffd9f228ac /drivers/crypto/caam/intern.h
parent8710e914027e4f64058ebbf0501cc6db3cc8454f (diff)
downloadop-kernel-dev-cf7c9c170787d6870af54684822f58acc00a966c.zip
op-kernel-dev-cf7c9c170787d6870af54684822f58acc00a966c.tar.gz
timers, sched/clock: Optimize cache line usage
Currently sched_clock(), a very hot code path, is not optimized to minimise its cache profile. In particular: 1. cd is not ____cacheline_aligned, 2. struct clock_data does not distinguish between hotpath and coldpath data, reducing locality of reference in the hotpath, 3. Some hotpath data is missing from struct clock_data and is marked __read_mostly (which more or less guarantees it will not share a cache line with cd). This patch corrects these problems by extracting all hotpath data into a separate structure and using ____cacheline_aligned to ensure the hotpath uses a single (64 byte) cache line. Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org> Signed-off-by: John Stultz <john.stultz@linaro.org> Reviewed-by: Stephen Boyd <sboyd@codeaurora.org> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Russell King <linux@arm.linux.org.uk> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Will Deacon <will.deacon@arm.com> Link: http://lkml.kernel.org/r/1427397806-20889-3-git-send-email-john.stultz@linaro.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'drivers/crypto/caam/intern.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud