summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/powerpc/pmu/event.h
diff options
context:
space:
mode:
authorSatanand Burla <satananda.burla@cavium.com>2017-01-31 13:04:42 -0800
committerDavid S. Miller <davem@davemloft.net>2017-02-01 12:25:40 -0500
commitcdb478e5e413864df73096ef4f0e5d518395a92b (patch)
tree4ebd2ed508b7a6aa5a5aba99f35308d0226fc1cf /tools/testing/selftests/powerpc/pmu/event.h
parent1f5e29ce7989eb75652774004b962ee1eb6e56ca (diff)
liquidio: fix for iq and droq cnts going negative
Flush the mmio writes before releasing spin locks. if the maintained counts get too high > 2M force writeback of the counts to clear them Signed-off-by: Satanand Burla <satananda.burla@cavium.com> Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com> Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@cavium.com> Signed-off-by: Derek Chickles <derek.chickles@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/powerpc/pmu/event.h')
0 files changed, 0 insertions, 0 deletions
e conditions. Similarly `pch->cyclic' is written by `pl330_alloc_chan_resources' under `pl330->lock' but read by `pl330_tx_submit' under `pch->lock'. Second, I have removed locking from `pl330_request_channel' and `pl330_release_channel' functions. Function `pl330_request_channel' is only called from `pl330_alloc_chan_resources', so the lock is already held. Function `pl330_release_channel' is called from `pl330_free_chan_resources', which already holds the lock, and from `pl330_del'. Function `pl330_del' is called in an error path of `pl330_probe' and at the end of `pl330_remove', but I assume that there cannot be concurrent accesses to the protected data at those points. Signed-off-by: Iago Abal <mail@iagoabal.eu> Reviewed-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'tools/testing/selftests/powerpc/benchmarks/context_switch.c')