cpufreq / cppc: Work around for Hisilicon CPPC cpufreq
authorXiongfeng Wang <wangxiongfeng2@huawei.com>
Sun, 17 Feb 2019 03:54:15 +0000 (11:54 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 18 Feb 2019 10:27:42 +0000 (11:27 +0100)
commit6c8d750f9784cef32a8cffdad74c8a351b4ca3a6
tree06da47433058ef334c86a52421fbb5e076042e71
parent1757d05f3112acc5c0cdbcccad3afdee99655bf9
cpufreq / cppc: Work around for Hisilicon CPPC cpufreq

Hisilicon chips do not support delivered performance counter register
and reference performance counter register. But the platform can
calculate the real performance using its own method. We reuse the
desired performance register to store the real performance calculated by
the platform. After the platform finished the frequency adjust, it gets
the real performance and writes it into desired performance register. Os
can use it to calculate the real frequency.

Signed-off-by: Xiongfeng Wang <wangxiongfeng2@huawei.com>
[ rjw: Drop unnecessary braces ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cppc_cpufreq.c