arm64: intiailize GIC for each CPU
For every CPU that comes online inialize the GIC for that CPU. This allows the per-cpu register state to be initialized for every CPU that comes online. BUG=chrome-os-partner:31945 BRANCH=None TEST=Built and booted to kernel on ryu. Change-Id: I58d0ffcfe65cffc6a4dd2678c041219e1e698aaf Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/217513 Reviewed-by: Furquan Shaikh <furquan@chromium.org>
This commit is contained in:
parent
d1cd9b6b76
commit
b2faf33fad
1 changed files with 4 additions and 0 deletions
|
|
@ -23,6 +23,7 @@
|
|||
#include <arch/lib_helpers.h>
|
||||
#include <cpu/cpu.h>
|
||||
#include <console/console.h>
|
||||
#include <gic.h>
|
||||
#include "cpu-internal.h"
|
||||
|
||||
static struct cpu_info cpu_infos[CONFIG_MAX_CPUS];
|
||||
|
|
@ -90,6 +91,9 @@ static void init_this_cpu(void *arg)
|
|||
|
||||
cpu_set_device_operations(dev);
|
||||
|
||||
/* Initialize the GIC. */
|
||||
gic_init();
|
||||
|
||||
if (dev->ops != NULL && dev->ops->init != NULL) {
|
||||
dev->initialized = 1;
|
||||
printk(BIOS_DEBUG, "%s init\n", dev_path(dev));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue