]> git.baikalelectronics.ru Git - arm-tf.git/commit
Tegra186: mce: add the mce_update_cstate_info() helper function
authorVarun Wadekar <vwadekar@nvidia.com>
Fri, 24 Mar 2017 00:32:20 +0000 (17:32 -0700)
committerVarun Wadekar <vwadekar@nvidia.com>
Thu, 30 Mar 2017 22:32:09 +0000 (15:32 -0700)
commit87a1df73619e9031c970ea5e0813a3040cc80992
tree924e29f662375ff08d02a5a86f5d11ec10732107
parentddc1c56f0b12af6171c11a5a8073c34becfedde2
Tegra186: mce: add the mce_update_cstate_info() helper function

This patch adds a helper function to the MCE driver to allow its
clients to issue UPDATE_CSTATE_INFO requests, without having to
setup the CPU context struct.

We introduced a struct to encapsulate the request parameters, that
clients can pass on to the MCE driver. The MCE driver gets the
parameters from the struct and programs the hardware accordingly.

Change-Id: I02bce57506c4ccd90da82127805d6b564375cbf1
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
plat/nvidia/tegra/soc/t186/drivers/include/mce.h
plat/nvidia/tegra/soc/t186/drivers/mce/mce.c