blob: 99c4b8159a7ace81d26af3dcf3b98c87e2720273 [file] [log] [blame]
// 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();
}