]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cpu: sandbox: implement release_core callback
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>
Thu, 1 Aug 2024 03:59:48 +0000 (11:59 +0800)
committerFabio Estevam <festevam@gmail.com>
Fri, 2 Aug 2024 18:16:51 +0000 (15:16 -0300)
Add empty release CPU core function for testing.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/cpu/cpu_sandbox.c

index e65e1bdc51bfafe93b303c12ae8aabb8503eb267..b15279578315c486d53ad1f278f469bd7a874922 100644 (file)
@@ -44,6 +44,11 @@ void cpu_sandbox_set_current(const char *name)
        cpu_current = name;
 }
 
+static int cpu_sandbox_release_core(const struct udevice *dev, phys_addr_t addr)
+{
+       return 0;
+}
+
 static int cpu_sandbox_is_current(struct udevice *dev)
 {
        if (!strcmp(dev->name, cpu_current))
@@ -58,6 +63,7 @@ static const struct cpu_ops cpu_sandbox_ops = {
        .get_count = cpu_sandbox_get_count,
        .get_vendor = cpu_sandbox_get_vendor,
        .is_current = cpu_sandbox_is_current,
+       .release_core = cpu_sandbox_release_core,
 };
 
 static int cpu_sandbox_bind(struct udevice *dev)