aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorDaniel Wagner <[email protected]>2016-11-17 11:00:49 +0100
committerGreg Kroah-Hartman <[email protected]>2016-11-29 21:28:54 +0100
commit0430cafcc4fb632beeeab42f8817542dcf6901ce (patch)
tree90af94390fc112eb3fd2d1e4914a2052da8d5677 /tools/perf/scripts/python/call-graph-from-postgresql.py
parentf52cc379423d61ae370aefe5344c88bc88881043 (diff)
firmware: drop bit ops in favor of simple state machine
We track the state of the firmware loading with bit ops. Since the state machine has only a few states and they are all mutual exclusive there are only a few simple state transition we can model this simplify. UNKNOWN -> LOADING -> DONE | ABORTED Because we don't use any bit ops on fw_state::status anymore we are able to change the data type to enum fw_status and update the function arguments accordingly. READ_ONCE() and WRITE_ONCE() are propably not needed because there are a lot of load and stores around fw_st->status. But let's make it explicit and not be sorry later. Cc: Ming Lei <[email protected]> Signed-off-by: Daniel Wagner <[email protected]> Acked-by: Luis R. Rodriguez <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions