aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/export-to-postgresql-report
diff options
context:
space:
mode:
authorSerge Semin <[email protected]>2019-05-14 13:14:09 +0300
committerGreg Kroah-Hartman <[email protected]>2019-05-21 12:15:53 +0200
commit2987590b7846bc55530d02fcb568ce338a1e5bdd (patch)
tree320098114261d93a08afd6cc8b21bc1aea6d3b96 /tools/perf/scripts/python/bin/export-to-postgresql-report
parent9f20e8843edf35a0e4869f9e52b0494cfb1c91fc (diff)
tty: max310x: Simplify tx-work item code
Since cmwq introduction in the kernel, workqueues've been turned into non-reentrant execution contexts [1]. It means any work item is guaranteed to be executed by at most one worker system-wide at any given time. Since tx-handler max310x_handle_tx() is called by a single work item we don't need it to be self-protected by the mutex. We also don't need to check the tx work item pending state before scheduling it (which in the first place was racy btw), since cmwq will make sure to reschedule the item if it wasn't pending at the moment of schedule_work() call. [1] Documentation/core-api/workqueue.rst Signed-off-by: Serge Semin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions