Commit 9878e328 authored by Yipeng Zou's avatar Yipeng Zou
Browse files

smart_grid: make sure hot zone have the highest priority

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8TBJJ


CVE: NA

--------------------------------

The cpufreq policy may be shared between hot and warm zone.

In the case for this, we have two sd_level which all belongs to one
cpufreq policy.

1. sd_level 0, cpu list 124-127
2. sd_level 1, cpu list 96-127

So in the old code, 96-127 policy will be set to warm zone governor.

But it should be hot zone governor, because We need to make sure hot
zone have the highest priority.

Fixes: 6a008918 ("smart_grid: cpufreq: introduce smart_grid cpufreq control")
Signed-off-by: default avatarYipeng Zou <zouyipeng@huawei.com>
parent 519be7d3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment