Get rid of power_off_when_done global variable.
authorBen Pfaff <blp@cs.stanford.edu>
Mon, 10 Nov 2008 00:19:48 +0000 (16:19 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Mon, 10 Nov 2008 00:19:48 +0000 (16:19 -0800)
commitc2e7ef527facedce80a37ad16bcc26ed168bd647
tree4fcaf2e1ac202053e981cb752df2d3d1b60a5994
parent22cc49887252924d76b84e404833bee165c921d1
Get rid of power_off_when_done global variable.

This global variable was not named according to the convention that a
global variable name start with its module name.  Furthermore, its usage
was somewhat scattered across the source tree.

This commit introduces new functions shutdown() and shutdown_configure()
to improve the situation.
src/devices/shutdown.c
src/devices/shutdown.h
src/lib/kernel/debug.c
src/threads/init.c
src/threads/init.h