aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <[email protected]>2020-11-01 22:15:31 +0100
committerKalle Valo <[email protected]>2020-11-07 17:52:19 +0200
commit49eb01995285361a398352d2ac403dd21f5e0c62 (patch)
tree263d1877d2865627ff19d0b0074691c988d261f3 /tools/perf/scripts/python/export-to-sqlite.py
parent24bf941f2c96d889df8b892adae25c68b6678787 (diff)
airo: Always use JOB_STATS and JOB_EVENT
issuecommand() is using in_atomic() to decide if it is safe to invoke schedule() while waiting for the command to be accepted. Usage of in_atomic() for this is only half correct as it can not detect all condition where it is not allowed to schedule(). Also Linus clearly requested that code which changes behaviour depending on context should either be seperated or the context be conveyed in an argument passed by the caller, which usually knows the context. Chasing the call chains leading up to issuecommand() is straight forward, but airo_link() and airo_get_stats() would require to pass the context through a quite large amount of functions. As this is ancient hardware, avoid the churn and enforce the invocation of those functions through the JOB machinery. Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Cc: Kalle Valo <[email protected]> Cc: [email protected] Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions