static int do_vbexport_test_isshutdown(cmd_tbl_t *cmdtp, int flag,
		int argc, char * const argv[])
{
	VbExDebug("Shutdown requested? %s\n",
			VbExIsShutdownRequested() ? "Yes" : "No");
	return 0;
}
/**
 * Checks GBB flags against VbExIsShutdownRequested() shutdown request to
 * determine if a shutdown is required.
 *
 * Returns true if a shutdown is required and false if no shutdown is required.
 */
static int VbWantShutdown(uint32_t gbb_flags)
{
    uint32_t shutdown_request = VbExIsShutdownRequested();

    /* If desired, ignore shutdown request due to lid closure. */
    if (gbb_flags & GBB_FLAG_DISABLE_LID_SHUTDOWN)
        shutdown_request &= ~VB_SHUTDOWN_REQUEST_LID_CLOSED;

    return !!shutdown_request;
}