On 13 June 2015 at 04:11, Bin Meng <[email protected]> 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 <[email protected]> > > --- > > 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 <[email protected]> _______________________________________________ U-Boot mailing list [email protected] http://lists.denx.de/mailman/listinfo/u-boot

