aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/call-graph-from-sql.py
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2018-07-05 00:59:31 +0200
committerMark Brown <broonie@kernel.org>2018-07-10 18:49:24 +0100
commit8d2d7bcdc1645dc243f7735278675b083c0e506c (patch)
tree52dfef63043f2c9d1e05a9ff3ccc48963616fc71 /tools/perf/scripts/python/call-graph-from-sql.py
parentASoC: Intel: bytcr_rt5651: Add support for externar amplifier enable GPIO (diff)
downloadlinux-8d2d7bcdc1645dc243f7735278675b083c0e506c.tar.gz
linux-8d2d7bcdc1645dc243f7735278675b083c0e506c.zip
ASoC: rt5651: Fix workqueue cancel vs irq free race on remove
On removal we must free the IRQ *before* cancelling the jack-detect work, so that the jack-detect work cannot be rescheduled by the IRQ. Before this commit we were cancelling the jack-detect work from the driver remove callback, while relying on devm to free the IRQ, which happens after the remove callback. This is the wrong order. This commit uses a devm-action to register a devm callback which cancels the work, before requesting the IRQ (devm tears things down in reverse order). This also allows us to remove the now empty remove driver callback. Cc: Carlo Caione <carlo@endlessm.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions