From c1a53bdcf0706c500ace50c8c0e676af310c0b9a Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Wed, 13 Jul 2016 12:00:49 -0500 Subject: [PATCH] UPSTREAM: lib: add poweroff() declaration Add a function to power off the system within the halt.h header. BUG=chrome-os-partner:54977 Change-Id: I21ca9de38d4ca67c77272031cc20f3f1d015f8fa Original-Signed-off-by: Aaron Durbin Original-Reviewed-on: https://review.coreboot.org/15684 Original-Reviewed-by: Furquan Shaikh Original-Tested-by: build bot (Jenkins) Signed-off-by: Aaron Durbin Reviewed-on: https://chromium-review.googlesource.com/360844 Reviewed-by: Duncan Laurie --- src/include/halt.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/include/halt.h b/src/include/halt.h index d31c2ca181..7ecd41a6cd 100644 --- a/src/include/halt.h +++ b/src/include/halt.h @@ -25,4 +25,8 @@ */ void __attribute__((noreturn)) halt(void); #endif /* __ROMCC__ */ + +/* Power off the system. */ +void poweroff(void); + #endif /* __HALT_H__ */