Unverified Commit fe7f595d authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!3746 smart_grid: make sure hot zone have the highest priority

parents a6e07e9f 9878e328
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -2821,7 +2821,11 @@ static void smart_grid_work_handler(struct work_struct *work)
		return;
	}

	for (gov_index = 0; gov_index < SMART_GRID_ZONE_NR; gov_index++) {
	/*
	 * Because of the policy may be shared between hot and warm zone.
	 * We need to make sure hot zone have the highest priority.
	 */
	for (gov_index = SMART_GRID_ZONE_NR - 1; gov_index >= 0; gov_index--) {
		target_gov = cpufreq_parse_governor(sg_zone.governor_name[gov_index]);
		if (target_gov == NULL)
			continue;