Commit baf3c1ed authored by Liao Xuan's avatar Liao Xuan
Browse files

x86/cpu: Get LLC ID for Hygon family 18h model 10h

hygon inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I9VW9Q


CVE: NA

---------------------------

Get LLC ID from ApicId[3].

Signed-off-by: default avatarLiao Xuan <liaoxuan@hygon.cn>
parent f74cd8cc
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -691,7 +691,8 @@ void cacheinfo_hygon_init_llc_id(struct cpuinfo_x86 *c, int cpu)
	if (!cpuid_edx(0x80000006))
		return;

	if (c->x86_model < 0x5) {
	if (c->x86_model < 0x5 ||
	   (c->x86_model >= 0x10 && c->x86_model <= 0x1f)) {
		/*
		 * LLC is at the core complex level.
		 * Core complex ID is ApicId[3] for these processors.