[arch][arm/arm64] Don't wait for secondary cpus to boot

There are several use cases for this:
- Generic kernel on a system with fewer cpus.
- Systems with two clusters that cannot run concurrently.
- LK as the secure os on a system where secondary cpus do not
  boot until the non-secure os boots.

Change-Id: I17917944c485ff4ac581c159b4abba05471ee5b8
This commit is contained in:
Arve Hjønnevåg
2015-04-17 20:49:59 -07:00
parent 196edc8f57
commit 3302ea6002
2 changed files with 0 additions and 10 deletions

View File

@@ -135,11 +135,6 @@ void arch_init(void)
/* flush the release of the lock, since the secondary cpus are running without cache on */
arch_clean_cache_range((addr_t)&arm_boot_cpu_lock, sizeof(arm_boot_cpu_lock));
/* wait for all of the secondary cpus to boot */
while (secondaries_to_init > 0) {
__asm__ volatile("wfe");
}
#endif
//spinlock_test();

View File

@@ -76,11 +76,6 @@ void arch_init(void)
/* flush the release of the lock, since the secondary cpus are running without cache on */
arch_clean_cache_range((addr_t)&arm_boot_cpu_lock, sizeof(arm_boot_cpu_lock));
/* wait for all of the secondary cpus to boot */
while (secondaries_to_init > 0) {
__asm__ volatile("wfe");
}
#endif
}