Skip to content

Commit 3694edc

Browse files
Zhiqiang-Houfabioestevam
authored andcommitted
cpu: sandbox: implement release_core callback
Add empty release CPU core function for testing. Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Reviewed-by: Simon Glass <sjg@chromium.org>
1 parent f2c306c commit 3694edc

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

drivers/cpu/cpu_sandbox.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ void cpu_sandbox_set_current(const char *name)
4444
cpu_current = name;
4545
}
4646

47+
static int cpu_sandbox_release_core(const struct udevice *dev, phys_addr_t addr)
48+
{
49+
return 0;
50+
}
51+
4752
static int cpu_sandbox_is_current(struct udevice *dev)
4853
{
4954
if (!strcmp(dev->name, cpu_current))
@@ -58,6 +63,7 @@ static const struct cpu_ops cpu_sandbox_ops = {
5863
.get_count = cpu_sandbox_get_count,
5964
.get_vendor = cpu_sandbox_get_vendor,
6065
.is_current = cpu_sandbox_is_current,
66+
.release_core = cpu_sandbox_release_core,
6167
};
6268

6369
static int cpu_sandbox_bind(struct udevice *dev)

0 commit comments

Comments
 (0)