Commit 11304e49 authored by Junhao He's avatar Junhao He Committed by Zheng Zengkai
Browse files

perf: hisi: Fix read sccl_id and ccl_id error in TSV200

driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I68F5A


CVE: NA

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

In TSV200 platform, SCCL is Aff3[7:0], CCL is Aff2[7:0] if mt.
Fixes: 1af26389 ("perf: hisi: Fix read sccl_id and ccl_id error in some platform")

Signed-off-by: default avatarJunhao He <hejunhao3@huawei.com>
Reviewed-by: default avatarYang Shen <shenyang39@huawei.com>
Reviewed-by: default avatarYang Jihong <yangjihong1@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent e2442372
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -437,7 +437,6 @@ static void hisi_read_sccl_and_ccl_id(int *scclp, int *cclp)
	if (mt) {
		switch (read_cpuid_part_number()) {
		case HISI_CPU_PART_TSV110:
		case HISI_CPU_PART_TSV200:
		case ARM_CPU_PART_CORTEX_A55:
			sccl = aff2 >> 3;
			ccl = aff2 & 0x7;