[PATCH 1/3] x86/CPU: Replace intel_num_cpu_cores with detect_num_cpu_cores

2018-05-02 Thread David Wang
intel_num_cpu_cores() is a static defination in intel.c which can't be used by other files. Define another function called detect_num_cpu_cores() in common.c to replace this function. Signed-off-by: David Wang --- arch/x86/include/asm/processor.h | 1 +

[PATCH 1/3] x86/CPU: Replace intel_num_cpu_cores with detect_num_cpu_cores

2018-05-02 Thread David Wang
intel_num_cpu_cores() is a static defination in intel.c which can't be used by other files. Define another function called detect_num_cpu_cores() in common.c to replace this function. Signed-off-by: David Wang --- arch/x86/include/asm/processor.h | 1 + arch/x86/kernel/cpu/common.c | 14