perf: Add cpu isolation awareness
Ensure perf events does not wake up idle cores when core is isolated. Change-Id: Ifefb2f1cf6c24af7bc46fc62797955b8c8ad5815 Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
This commit is contained in:
parent
e38c1ce123
commit
639c8ad52d
1 changed files with 2 additions and 1 deletions
|
@ -3386,7 +3386,8 @@ static int perf_event_read(struct perf_event *event, bool group)
|
|||
* If event is enabled and currently active on a CPU, update the
|
||||
* value in the event structure:
|
||||
*/
|
||||
if (event->state == PERF_EVENT_STATE_ACTIVE) {
|
||||
if (event->state == PERF_EVENT_STATE_ACTIVE &&
|
||||
!cpu_isolated(event->oncpu)) {
|
||||
struct perf_read_data data = {
|
||||
.event = event,
|
||||
.group = group,
|
||||
|
|
Loading…
Add table
Reference in a new issue