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

Simon Glass sjg at chromium.org
Wed Jun 24 04:45:02 CEST 2015


On 16 June 2015 at 21:15, 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>
> Acked-by: Simon Glass <sjg at chromium.org>
>
> ---
>
> Changes in v4:
> - Update to match cpu_get_count()
>
> 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 | 98 ++++++++++++++-------------------------------
>  arch/x86/cpu/cpu.c          | 40 ++++++++++++++++++
>  arch/x86/cpu/cpu_x86.c      | 28 +++++++++++++
>  arch/x86/cpu/mp_init.c      | 18 +++++++--
>  arch/x86/include/asm/mp.h   |  1 -
>  drivers/cpu/cpu-uclass.c    |  2 +
>  6 files changed, 114 insertions(+), 73 deletions(-)

Applied to u-boot-x86, thanks!


More information about the U-Boot mailing list