Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 660536db authored by Raghavendra Rao Ananta's avatar Raghavendra Rao Ananta Committed by Rishabh Bhatnagar
Browse files

perf: Prevent waiting for cpu to come out of idle during read



Currently if the CPU is in idle state, the perf_event_read() loops
until it's out of that state. However, the PMU driver updates the
event->count value before going into idle. Hence, the caller of
perf_event_read() can simply return without waiting for the CPU to
come out of idle state and still get an updated value.

Change-Id: If0eb2f9bc64b5b0f2919e37d2c9b4dca5703ba46
Signed-off-by: default avatarRaghavendra Rao Ananta <rananta@codeaurora.org>
Signed-off-by: default avatarRishabh Bhatnagar <rishabhb@codeaurora.org>
parent 0006cb4a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment