[U-Boot] [PATCH v3 3/6] x86: Move MP initialization codes into a common place

Simon Glass sjg at chromium.org
Mon Jun 15 22:45:42 CEST 2015


On 13 June 2015 at 04:11, Bin Meng <bmeng.cn at gmail.com> wrote:
> Most of the MP initialization codes in arch/x86/cpu/baytrail/cpu.c is
> common to all x86 processors, except detect_num_cpus() which varies
> from cpu to cpu. Move these to arch/x86/cpu/cpu.c and implement the
> new 'get_count' method for baytrail and cpu_x86 drivers. Now we call
> cpu_get_count() in mp_init() to get the number of CPUs.
>
> Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
>
> ---
>
> Changes in v3:
> - Remove num_cpus from struct mp_params
> - Call cpu_get_count() in mp_init() to get the number of CPUs
> - Add missing DECLARE_GLOBAL_DATA_PTR in cpu-uclass.c and cpu_x86.c
>
> Changes in v2: None
>
>  arch/x86/cpu/baytrail/cpu.c | 99 ++++++++++++++-------------------------------
>  arch/x86/cpu/cpu.c          | 40 ++++++++++++++++++
>  arch/x86/cpu/cpu_x86.c      | 30 ++++++++++++++
>  arch/x86/cpu/mp_init.c      | 18 +++++++--
>  arch/x86/include/asm/mp.h   |  1 -
>  drivers/cpu/cpu-uclass.c    |  2 +
>  6 files changed, 117 insertions(+), 73 deletions(-)

Acked-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list