diff options
author | J. German Rivera <[email protected]> | 2015-10-17 11:18:15 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2015-10-17 20:53:38 -0700 |
commit | d2f8499153aa78b21881b3ca1fcdc026c3a79079 (patch) | |
tree | 0e93d6a8bb38e20655fef65642b49a50dc58ce38 /tools/perf/scripts/python/stat-cpi.py | |
parent | ffcd52ef0907f56181a28f4ae5ab6f0b39e3cf58 (diff) |
staging: fsl-mc: dpmcp opening/closing refactoring
Before, we were opening and closing a mc_io's dpmcp object
in fsl_mc_portal_reset(), since that was the only function that was
calling dpmcp MC operations. However, it is better for maintainability
to open the dpmcp object when it gets associated with an mc_io object,
and close it when this association is terminated. This way, we are free
to call dpmcp operations on a mc_io's dpmcp object at any time, without
having to check if the dpmcp object is opened or not.
Consequently, the creation/teardown of the association between
an mc_io object and a dpmcp is now encapsulated in two functions:
fsl_mc_io_set_dpmcp()/fsl_mc_io_unset_dpmcp(). Besides, setting
the corresponding pointers for the association, these functions
open and close the dpmcp object respectively.
Signed-off-by: J. German Rivera <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions