2 * Copyright 2009, Olivier Coursière. All rights reserved.
3 * Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
4 * Distributed under the terms of the MIT License.
13 system_shutdown(bool reboot
)
18 gKernelShutdown
= true;
20 // Now shutdown all system services!
21 // TODO: Once we are sure we can shutdown the system on all hardware
22 // checking reboot may not be necessary anymore.
24 while (get_next_team_info(&cookie
, &info
) == B_OK
) {
25 if (info
.team
== B_SYSTEM_TEAM
)
33 return arch_cpu_shutdown(reboot
);
41 _user_shutdown(bool reboot
)
45 return system_shutdown(reboot
);