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

!10170 x86: resctrl: Fix illegal access by the chips not having RDT

parents adac2fbc 2021953e
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -830,13 +830,13 @@ int resctrl_mon_resource_init(void)
	struct rdt_resource *r = resctrl_arch_get_resource(RDT_RESOURCE_L3);
	int ret;

	if (!r->mon_capable)
		return 0;

	ret = dom_data_init(r);
	if (ret)
		return ret;

	if (!r->mon_capable)
		return 0;

	l3_mon_evt_init(r);

	if (resctrl_arch_is_evt_configurable(QOS_L3_MBM_TOTAL_EVENT_ID)) {