diff options
author | Jens Wiklander <jens.wiklander@linaro.org> | 2020-06-07 23:23:40 +0200 |
---|---|---|
committer | Jérôme Forissier <jerome@forissier.org> | 2020-07-27 10:38:59 +0200 |
commit | 651d75378f517f798eba7a508e8b457504c0a05c (patch) | |
tree | 600e2bad8f8c9162bbd68f7090e7de219b4c5ba3 /core/arch/arm/plat-hisilicon/main.c | |
parent | 7446af61c49a70a53c6d131963569ea3f394c939 (diff) |
core: remove boot_get_handlers()
struct thread_handlers is used to pass the entry functions
for different power management events. In practice only .cpu_on is used
and with the default function at that. In the ARMv7 case where the
secure monitor replaces TF-A not even that function entry is used.
Remove struct thread_handlers and boot_get_handlers(). When configured
with TF-A initialize thread_*_handler_ptr with __weak default functions.
The __weak default PM functions
- thread_cpu_off_handler()
- thread_cpu_suspend_handler()
- thread_cpu_resume_handler()
- thread_system_off_handler()
- thread_system_reset_handler()
can be overridden by platforms when needed.
Reviewed-by: Jerome Forissier <jerome@forissier.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'core/arch/arm/plat-hisilicon/main.c')
-rw-r--r-- | core/arch/arm/plat-hisilicon/main.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/core/arch/arm/plat-hisilicon/main.c b/core/arch/arm/plat-hisilicon/main.c index bf79415a..4840b98f 100644 --- a/core/arch/arm/plat-hisilicon/main.c +++ b/core/arch/arm/plat-hisilicon/main.c @@ -6,24 +6,11 @@ #include <console.h> #include <drivers/gic.h> #include <drivers/pl011.h> -#include <kernel/boot.h> #include <kernel/panic.h> -#include <kernel/pm_stubs.h> #include <mm/tee_pager.h> #include <mm/core_memprot.h> #include <platform_config.h> #include <stdint.h> -#include <tee/entry_std.h> -#include <tee/entry_fast.h> - -static const struct thread_handlers handlers = { - .cpu_on = pm_panic, - .cpu_off = pm_panic, - .cpu_suspend = pm_panic, - .cpu_resume = pm_panic, - .system_off = pm_panic, - .system_reset = pm_panic, -}; static struct pl011_data console_data; register_phys_mem(MEM_AREA_IO_NSEC, CONSOLE_UART_BASE, PL011_REG_SIZE); @@ -37,11 +24,6 @@ register_phys_mem(MEM_AREA_IO_SEC, CPU_CRG_BASE, CPU_CRG_SIZE); register_phys_mem(MEM_AREA_IO_SEC, SYS_CTRL_BASE, SYS_CTRL_SIZE); #endif -const struct thread_handlers *boot_get_handlers(void) -{ - return &handlers; -} - void console_init(void) { pl011_init(&console_data, CONSOLE_UART_BASE, |