aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorRemi Pommarel <[email protected]>2019-09-27 10:55:02 +0200
committerLorenzo Pieralisi <[email protected]>2019-10-15 12:11:51 +0100
commit7fbcb5da811be7d47468417c7795405058abb3da (patch)
treeb57209b11e81717264104d752f9acf2c708613bd /tools/perf/util/trace-event-scripting.c
parentc0f05a6ab52535c1bf5f43272eede3e11c5701a5 (diff)
PCI: aardvark: Don't rely on jiffies while holding spinlock
advk_pcie_wait_pio() can be called while holding a spinlock (from pci_bus_read_config_dword()), then depends on jiffies in order to timeout while polling on PIO state registers. In the case the PIO transaction failed, the timeout will never happen and will also cause the cpu to stall. This decrements a variable and wait instead of using jiffies. Signed-off-by: Remi Pommarel <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]> Reviewed-by: Andrew Murray <[email protected]> Acked-by: Thomas Petazzoni <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions