hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/IBC4SJ
--------------------------------
The uncore frequency adjustment configuration takes effect at the millisecond level, and the status of devices within the uncore range fluctuates greatly.
Increase the polling interval to reduce the impact of the frequency adjustment effective time and smooth the device status fluctuation.
Signed-off-by: Xiangwei Li liwei728@huawei.com --- drivers/devfreq/hisi_uncore_freq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/devfreq/hisi_uncore_freq.c b/drivers/devfreq/hisi_uncore_freq.c index d0e58e80db46..2e65f6c9f6a1 100644 --- a/drivers/devfreq/hisi_uncore_freq.c +++ b/drivers/devfreq/hisi_uncore_freq.c @@ -306,7 +306,8 @@ static int hisi_uncore_devfreq_register(struct hisi_uncore_freq *uncore) return -ENOMEM;
profile->initial_freq = (unsigned long)data * HZ_PER_MHZ; - profile->polling_ms = 100; + profile->polling_ms = 1000; + profile->timer = DEVFREQ_TIMER_DELAYED; profile->target = hisi_uncore_target; profile->get_dev_status = hisi_uncore_get_dev_status; profile->get_cur_freq = hisi_uncore_get_cur_freq;