• X
    cpufreq / cppc: Work around for Hisilicon CPPC cpufreq · 5f085d45
    Xiongfeng Wang 提交于
    euler inclusion
    category: feature
    Bugzilla: 5520
    CVE: N/A
    
    ------------------------------------------------------------------------
    
    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. This patch provide
    a workaround for this problem, and other platforms can also use this
    workaround framework. 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: NXiongfeng Wang <wangxiongfeng2@huawei.com>
    Reviewed-by: NHanjun Guo <guohanjun@huawei.com>
    Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
    5f085d45
cppc_acpi.h 3.2 KB