aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorThomas Gleixner <[email protected]>2011-02-14 18:08:51 +0100
committerGrant Likely <[email protected]>2011-02-22 14:59:53 -0700
commit0ff56cd85a2c5104a36d84662b9180c219e8604e (patch)
tree2d8826a9743143402a8028a3a1c36f21ff5df755 /tools/perf/scripts/python/net_dropmonitor.py
parent0b782531c038d4a4bded3fc1069c961b1f14f0de (diff)
gpio/sx150x: Do not access I2C from mask/unmask functions
irq_chip->irq_mask/unmask are called with interrupts disabled and irq_desc->lock held. So we cannot access i2c from this context. That's what irq_bus_sync_unlock() is for. Store the masked information in the chip data structure and update the i2c bus from the irq_bus_sync_unlock() callback. This does not need a while(pending) loop because the update to this is always serialized via the bus lock, so we never have more than one pin update pending. Signed-off-by: Thomas Gleixner <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Gregory Bean <[email protected]> Cc: Jean Delvare <[email protected]> Cc: Lennert Buytenhek <[email protected]> Signed-off-by: Grant Likely <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions