mailbox: pcc: Refactor all PCC channel information into a structure
authorSudeep Holla <sudeep.holla@arm.com>
Fri, 17 Sep 2021 13:33:46 +0000 (14:33 +0100)
committerJassi Brar <jaswinder.singh@linaro.org>
Sat, 30 Oct 2021 03:46:38 +0000 (22:46 -0500)
commit80b2bdde002c521284ce472a849784f599626276
treec24e6104b031adec4d7fa23e60843310bc2e10f2
parent10dcc2d66292f9f7d0851447da5c2450760b91e6
mailbox: pcc: Refactor all PCC channel information into a structure

Currently all the PCC channel specific information are stored/maintained
in global individual arrays for each of those information. It is not
scalable and not clean if we have to stash more channel specific
information. Couple of reasons to stash more information are to extend
the support to Type 3/4 PCCT subspace and also to avoid accessing the
PCCT table entries themselves each time we need the information.

This patch moves all those PCC channel specific information into a
separate structure pcc_chan_info.

Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/pcc.c