diff options
author | Sudeep Holla <sudeep.holla@arm.com> | 2025-03-13 18:28:54 +0300 |
---|---|---|
committer | Jassi Brar <jassisinghbrar@gmail.com> | 2025-03-27 04:58:26 +0300 |
commit | 2475b36401eda70f60e5d18d67ccafb81cedd0f7 (patch) | |
tree | 434fc91ad5a7eea915ebf7c92f5bdc40b432fc52 /tools/perf/scripts/python/sched-migration.py | |
parent | fa362ffafa51b08cf8e2fcca38e056332f6b9b05 (diff) | |
download | linux-2475b36401eda70f60e5d18d67ccafb81cedd0f7.tar.xz |
mailbox: pcc: Refactor and simplify check_and_ack()
The existing check_and_ack() function had unnecessary complexity. The
logic could be streamlined to improve code readability and maintainability.
The command update register needs to be updated in order to acknowledge
the platform notification through type 4 channel. So it can be done
unconditionally. Currently it is complicated just to make use of
pcc_send_data() which also executes the same updation.
In order to simplify, let us just ring the doorbell directly from
check_and_ack() instead of calling into pcc_send_data(). While at it,
rename it into pcc_chan_check_and_ack() to maintain consistency in the
driver.
Acked-by: Huisong Li <lihuisong@huawei.com>
Tested-by: Adam Young <admiyo@os.amperecomputing.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions