[PATCH 2/4] x86/amd: add accessor for number of cores per compute unit

2016-01-06 Thread Huang Rui
Add an accessor function amd_get_cores_per_cu() which returns the number of cores per compute unit. In a subsequent patch, we will use this function in both x86 perf and fam15h driver. Signed-off-by: Huang Rui --- arch/x86/include/asm/processor.h | 1 + arch/x86/kernel/cpu/amd.c| 17

[PATCH 2/4] x86/amd: add accessor for number of cores per compute unit

2016-01-06 Thread Huang Rui
Add an accessor function amd_get_cores_per_cu() which returns the number of cores per compute unit. In a subsequent patch, we will use this function in both x86 perf and fam15h driver. Signed-off-by: Huang Rui --- arch/x86/include/asm/processor.h | 1 +