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

!5145 arm64/mpam: Expand the monitor number of the resctrl root

parents 38e0e8fe a8c87e34
Loading
Loading
Loading
Loading
+14 −18
Original line number Diff line number Diff line
@@ -672,11 +672,7 @@ static int find_rdtgrp_allocable_rmid(struct resctrl_group *rdtgrp)
	struct list_head *head;

	prgrp = rdtgrp->mon.parent;
	if (prgrp == &resctrl_group_default) {
		rmid = rmid_alloc(-1);
		if (rmid < 0)
			return rmid;
	} else {

	do {
		rmid = rmid_alloc(prgrp->closid.reqpartid);
		if (rmid >= 0)
@@ -686,12 +682,12 @@ static int find_rdtgrp_allocable_rmid(struct resctrl_group *rdtgrp)
		list_for_each_entry(entry, head, mon.crdtgrp_list) {
			if (entry == rdtgrp)
				continue;

			rmid = rmid_alloc(entry->closid.reqpartid);
			if (rmid >= 0)
				break;
		}
	} while (0);
	}

	if (rmid < 0)
		rmid = rmid_alloc(-1);