summaryrefslogtreecommitdiff
path: root/arch/x86
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2015-07-22 01:21:12 -0700
committerSimon Glass <sjg@chromium.org>2015-07-28 10:36:25 -0600
commitc77b8912d86a08b57bab21982a865fbf2151f0af (patch)
tree275cb485aae30688bbcd32ad52024473f35c97c1 /arch/x86
parente7cd070da61c1dc096aa8cd45185f90f6508707b (diff)
downloadu-boot-imx-c77b8912d86a08b57bab21982a865fbf2151f0af.zip
u-boot-imx-c77b8912d86a08b57bab21982a865fbf2151f0af.tar.gz
u-boot-imx-c77b8912d86a08b57bab21982a865fbf2151f0af.tar.bz2
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 <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/cpu/cpu.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86/cpu/cpu.c b/arch/x86/cpu/cpu.c
index b4e0fd9..b9134cf 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;