summaryrefslogtreecommitdiffstats
path: root/arch/xtensa/kernel/platform.c
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2023-06-07 08:59:38 -0700
committerMax Filippov <jcmvbkbc@gmail.com>2023-06-12 19:48:56 -0700
commit7561dfbf3b3451957c5d3fc52f53c78e78ed3034 (patch)
tree9888ce0b5feae5969c04ebc2aaba66dda600bc82 /arch/xtensa/kernel/platform.c
parent11976fe2a47aa952b8fec54bc2bd54d57642f650 (diff)
downloadlinux-7561dfbf3b3451957c5d3fc52f53c78e78ed3034.tar.gz
linux-7561dfbf3b3451957c5d3fc52f53c78e78ed3034.tar.bz2
linux-7561dfbf3b3451957c5d3fc52f53c78e78ed3034.zip
xtensa: drop platform_halt and platform_power_off
Instead of using xtensa-specific platform_halt and platform_power_off callbacks use do_kernel_power_off in the machine_halt and machine_power_off and reimplement existing platform_halt and platform_power_off users with register_sys_off_handler. Drop platform_halt and platform_power_off declarations and default implementations. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/kernel/platform.c')
-rw-r--r--arch/xtensa/kernel/platform.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/xtensa/kernel/platform.c b/arch/xtensa/kernel/platform.c
index 526ab744271f..29fa5d659274 100644
--- a/arch/xtensa/kernel/platform.c
+++ b/arch/xtensa/kernel/platform.c
@@ -28,8 +28,6 @@
_F(void, init, (bp_tag_t *first), { });
_F(void, setup, (char** cmd), { });
-_F(void, halt, (void), { while(1); });
-_F(void, power_off, (void), { while(1); });
_F(void, idle, (void), { __asm__ __volatile__ ("waiti 0" ::: "memory"); });
#ifdef CONFIG_XTENSA_CALIBRATE_CCOUNT