summaryrefslogtreecommitdiff
path: root/drivers/firmware/psci.c
diff options
context:
space:
mode:
authorVikram Mulukutla <markivx@codeaurora.org>2017-05-30 14:38:55 -0700
committerVikram Mulukutla <markivx@codeaurora.org>2017-05-31 18:16:30 -0700
commit259636e7d070a41ccbfc5e6c5de7d5029bd827de (patch)
treebf68b7117c5bc45b798e480f64368feebfbe2372 /drivers/firmware/psci.c
parent25865f691b22d9b013cce032c06d3c0ed2485495 (diff)
sched: hmp: Optimize cycle counter reads
The cycle counter read is a bit of an expensive operation and requires locking across all CPUs in a cluster. Optimize this by returning the same value if the delta between two reads is zero (so if two reads are done in the same sched context) or if the last read was within a specific time period prior to the current read. Change-Id: I99da5a704d3652f53c8564ba7532783d3288f227 Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
Diffstat (limited to 'drivers/firmware/psci.c')
0 files changed, 0 insertions, 0 deletions