aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorOleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>2020-08-06 12:43:00 +0300
committerTom Rini <trini@konsulko.com>2020-08-14 15:18:30 -0400
commitd17f6698b8e07b15941dd888a4b2d69aa046ae1e (patch)
tree310aa01f4f023a24c16807e2998d10fe079881f5 /drivers
parent53d725c74e825cdbca9c278514a44b1aa15513e3 (diff)
downloadu-boot-d17f6698b8e07b15941dd888a4b2d69aa046ae1e.zip
u-boot-d17f6698b8e07b15941dd888a4b2d69aa046ae1e.tar.gz
u-boot-d17f6698b8e07b15941dd888a4b2d69aa046ae1e.tar.bz2
board: xen: De-initialize before jumping to Linux
Free resources used by Xen board before jumping to Linux kernel. Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com> Signed-off-by: Anastasiia Lukianenko <anastasiia_lukianenko@epam.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/xen/hypervisor.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/xen/hypervisor.c b/drivers/xen/hypervisor.c
index 58b0865..178c206 100644
--- a/drivers/xen/hypervisor.c
+++ b/drivers/xen/hypervisor.c
@@ -242,3 +242,11 @@ void xen_init(void)
init_gnttab();
}
+void xen_fini(void)
+{
+ debug("%s\n", __func__);
+
+ fini_gnttab();
+ fini_xenbus();
+ fini_events();
+}