aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/hp
diff options
context:
space:
mode:
authorMark Rutland2016-08-11 10:50:42 +0100
committerPawel Moll2016-08-26 09:16:13 +0100
commit5b1e01f3ce15d3a8f2af5d38cc31f0d5c3c11dae (patch)
tree1e1a1d6f3b2b1c48fe8e15bd4c08792ccee9821a /drivers/net/ethernet/hp
parent0811ef7e2f5470833a353426a6fbe0b845aea926 (diff)
bus: arm-ccn: fix hrtimer registration
The CCN PMU driver has a single hrtimer, used to simulate a periodic interrupt on systems where the overflow interrupt is not possible to use. The hrtimer is started when any event is started, and cancelled when any event is stopped. Thus, stopping a single event is sufficient to disable to hrtimer, and overflows (of other events) may be lost. To avoid this, this patch reworks the hrtimer start/cancel to only occur when the first event is added to a PMU, and the last event removed, making use of the existing bitmap counting active events. Signed-off-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Pawel Moll <pawel.moll@arm.com>
Diffstat (limited to 'drivers/net/ethernet/hp')
0 files changed, 0 insertions, 0 deletions