diff options
author | Alex Elder <elder@linaro.org> | 2022-10-21 14:13:38 -0500 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2022-10-25 11:15:19 +0200 |
commit | 7fd10a2aca6a2ff3316fac7fb2a72f6e1b303a57 (patch) | |
tree | 1071ea656fa951c32c0ec1a0897f012b9ece03a2 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 5444b0ea9915132b8a202c2c664630cb99daa969 (diff) |
net: ipa: introduce ipa_cmd_init()
Currently, ipa_cmd_data_valid() is called by ipa_mem_config().
Nothing it does requires access to hardware though, so it can be
done during the init phase of IPA driver startup.
Create a new function ipa_cmd_init(), whose purpose is to do early
initialization related to IPA immediate commands. It will call the
build-time validation function, then will make the two calls made
previously by ipa_cmd_data_valid(). This make ipa_cmd_data_valid()
unnecessary, so get rid of it.
Rename ipa_cmd_header_valid() to be ipa_cmd_header_init_local_valid(),
so its name is clearer about which IPA immediate command it is
associated with.
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions