From: Bin Meng Date: Wed, 22 Jul 2015 08:21:12 +0000 (-0700) Subject: x86: Allow cpu-x86 driver to be probed for UP X-Git-Tag: v2015.10-rc1~11 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c77b8912d86a08b57bab21982a865fbf2151f0af;p=u-boot x86: Allow cpu-x86 driver to be probed for UP Currently cpu-x86 driver is probed only for SMP. We add the same support for UP when there is only one cpu node in the deive tree. Signed-off-by: Bin Meng Acked-by: Simon Glass --- diff --git a/arch/x86/cpu/cpu.c b/arch/x86/cpu/cpu.c index b4e0fd9bc2..b9134cfef3 100644 --- a/arch/x86/cpu/cpu.c +++ b/arch/x86/cpu/cpu.c @@ -696,6 +696,15 @@ __weak int x86_init_cpus(void) #ifdef CONFIG_SMP debug("Init additional CPUs\n"); x86_mp_init(); +#else + struct udevice *dev; + + /* + * This causes the cpu-x86 driver to be probed. + * We don't check return value here as we want to allow boards + * which have not been converted to use cpu uclass driver to boot. + */ + uclass_first_device(UCLASS_CPU, &dev); #endif return 0;