// Copyright 2016 The Fuchsia Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style license that can be | |
// found in the LICENSE file. | |
#include "power.h" | |
#include <acpica/acpi.h> | |
void poweroff(void) { | |
ACPI_STATUS status = AcpiEnterSleepStatePrep(5); | |
if (status == AE_OK) { | |
AcpiEnterSleepState(5); | |
} | |
} | |
void reboot(void) { | |
AcpiReset(); | |
} |