/* This PDC function places the soft power button under software or hardware control. Under software control the OS may control to when to allow to shut down the system. Under hardware control pressing the power button powers off the system immediately.  */
int pdc_soft_power_button(int sw_control)
/* This PDC function places the soft power button under software or hardware control. Under software control the OS may control to when to allow to shut down the system. Under hardware control pressing the power button powers off the system immediately.  */
int pdc_soft_power_button(int sw_control)
{
	int retval;
	unsigned long flags;
	spin_lock_irqsave(&pdc_lock, flags);
	retval = mem_pdc_call(PDC_SOFT_POWER, PDC_SOFT_POWER_ENABLE, __pa(pdc_result), sw_control);
	spin_unlock_irqrestore(&pdc_lock, flags);
	return retval;
}