Commit 3ff0de83 authored by Xiangwei Li's avatar Xiangwei Li Committed by Ma Wupeng
Browse files

PM / devfreq: Adjust default HiSilicon uncore devfreq polling interval and workqueue

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: default avatarXiangwei Li <liwei728@huawei.com>
parent 5002cf25
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;