MLK-16477 cpufreq: imx8: switch cpufreq governor to schedutil for multi-cluster
authorAnson Huang <Anson.Huang@nxp.com>
Mon, 18 Sep 2017 04:41:40 +0000 (12:41 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:38:34 +0000 (15:38 -0500)
commit95212afafe291e459892af72a808c4e16dd25ae4
treef854415afd98284fd8df02b51cdccbe622688009
parent1d02526d9f5b33297cae883b3f8156f8ba0340f2
MLK-16477 cpufreq: imx8: switch cpufreq governor to schedutil for multi-cluster

For multi-cluster platforms like i.MX8QM, the best cpufreq
governor is schedutil, as common cpufreq framework decides
default cpufreq governor in static compile, so this patch
adds dynamic switch of cpufreq governor according to cluster
number, changing it via sysfs interface, although it is
ugly, but it realizes dynamic cpufreq governor select for
users.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
drivers/cpufreq/imx8-cpufreq.c