[PATCH AUTOSEL 4.9 04/13] sparc: Fix single-pcr perf event counter management.

2018-10-30 Thread Sasha Levin
From: "David S. Miller" [ Upstream commit cfdc3170d214046b9509183fe9b9544dc644d40b ] It is important to clear the hw->state value for non-stopped events when they are added into the PMU. Otherwise when the event is scheduled out, we won't read the counter because HES_UPTODATE is still set.

[PATCH AUTOSEL 4.9 04/13] sparc: Fix single-pcr perf event counter management.

2018-10-30 Thread Sasha Levin
From: "David S. Miller" [ Upstream commit cfdc3170d214046b9509183fe9b9544dc644d40b ] It is important to clear the hw->state value for non-stopped events when they are added into the PMU. Otherwise when the event is scheduled out, we won't read the counter because HES_UPTODATE is still set.