void dormant_enter(void)
{
	bool ret = false;

	if (dormant_base_va != 0) {
		instrument_dormant_entry();

		/* Count of total number of times dormant entry was
		 * attempted.
		 */
		dormant_attempt++;
		dormant_save_addnl_reg();

		ret = dormant_start();
		instrument_dormant_trace(DORMANT_RETURN);

		if (ret == true) {
			/* Dormant entry succeeded */
			dormant_pass++;
			instrument_dormant_trace(DORMANT_RESTORE_PROC);
			dormant_restore_addnl_reg();
		} else {
			dormant_fail++;
		}

		instrument_dormant_exit();
	}
}
Exemple #2
0
void dormant_enter(void)
{

	if(enable_dormant)
	{
		dormant_save_addnl_reg();
		dormant_start();
		dormant_restore_addnl_reg();
	}
}