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)
commit94618414d6e0e051cf95e900c63ed2835ed16a82
tree5f595870b2281d0d85ec3898cf03d8e02695abe8
parent19becec31c5704572a3575336c57364d72fd572b
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