x86/cpu: Get CPU topology for Hygon family 18h model 6h

Add support to derive CPU topology for Hygon family 18h model 6h
processor.

Signed-off-by: Pu Wen <puwen@hygon.cn>
Signed-off-by: Jinliang Zheng <alexjlzheng@tencent.com>
Reviewed-by: Bin Lai <robinlai@tencent.com>
Signed-off-by: Jinliang Zheng <alexjlzheng@tencent.com>
Reviewed-by: caelli <caelli@tencent.com>
Signed-off-by: Jianping Liu <frankjpliu@tencent.com>
This commit is contained in:
Pu Wen 2023-06-08 12:49:07 +08:00 committed by Jianping Liu
parent 735e1788da
commit 17704da187
1 changed files with 1 additions and 0 deletions

View File

@ -89,6 +89,7 @@ static void hygon_get_topology(struct cpuinfo_x86 *c)
break;
case 0x4:
case 0x5:
case 0x6:
/*
* In case leaf 0xB is available, use it to derive
* topology information.