Esempio n. 1
0
static void s3c_pm_finish(void)
{
	if (pm_finish)
		pm_finish();

	s3c_pm_check_cleanup();
	enable_hlt();
}
Esempio n. 2
0
static void s3c_pm_finish(void)
{
	if (pm_finish)
		pm_finish();

	s3c_pm_check_cleanup();
#if defined(CONFIG_MACH_P8LTE) \
	|| defined(CONFIG_MACH_U1_NA_SPR)
	enable_hlt();
#endif
}
Esempio n. 3
0
static void am33xx_pm_end(void)
{
	suspend_state = PM_SUSPEND_ON;

	omap_mbox_enable_irq(m3_mbox, IRQ_RX);

	am33xx_m3_state_machine_reset();

	enable_hlt();

	return;
}
static int cpuidle_pm_notify(struct notifier_block *nfb, unsigned long action, void *ignored)
{
	switch (action) {
	case PM_SUSPEND_PREPARE:
		disable_hlt();
		pr_info("PM_SUSPEND_PREPARE for CPUIDLE\n");
		return NOTIFY_OK;
	case PM_POST_RESTORE:
	case PM_POST_SUSPEND:
		enable_hlt();
		pr_info("PM_POST_SUSPEND for CPUIDLE\n");
		return NOTIFY_OK;
	}
	return NOTIFY_DONE;
}
Esempio n. 5
0
/**
 * suspend_devices_and_enter - Suspend devices and enter system sleep state.
 * @state: System sleep state to enter.
 */
int suspend_devices_and_enter(suspend_state_t state)
{
	int error;
	bool wakeup = false;

	if (!suspend_ops)
		return -ENOSYS;

	trace_machine_suspend(state);
	if (suspend_ops->begin) {
		error = suspend_ops->begin(state);
		if (error)
			goto Close;
	}
	suspend_console();
	suspend_test_start();
	error = dpm_suspend_start(PMSG_SUSPEND);
	if (error) {
		printk(KERN_ERR "PM: Some devices failed to suspend\n");
		goto Recover_platform;
	}
	suspend_test_finish("suspend devices");
	if (suspend_test(TEST_DEVICES))
		goto Recover_platform;

	do {
		disable_hlt();
		error = suspend_enter(state, &wakeup);
		enable_hlt();
	} while (!error && !wakeup
		&& suspend_ops->suspend_again && suspend_ops->suspend_again());

 Resume_devices:
	suspend_test_start();
	dpm_resume_end(PMSG_RESUME);
	suspend_test_finish("resume devices");
	resume_console();
 Close:
	if (suspend_ops->end)
		suspend_ops->end();
	trace_machine_suspend(PWR_EVENT_EXIT);
	return error;

 Recover_platform:
	if (suspend_ops->recover)
		suspend_ops->recover();
	goto Resume_devices;
}
static void rmnet_usb_lp2_in_idle_timer_expired(unsigned long i)
{
//++SSD_RIL:20120814: For CPU/Freq min default value
	int is_enable_hlt = 0;
//--SSD_RIL
	unsigned long flags = 0;
	spin_lock_irqsave(&rmnet_usb_hlt_lock, flags);
	if ( rnmet_usb_hlt_timer_enabled == 1 ) {
		rnmet_usb_hlt_timer_enabled = 0;
		enable_hlt();
//++SSD_RIL:20120814: For CPU/Freq min default value
		is_enable_hlt = 1;
//--SSD_RIL
		pr_info("%s: rmnet hlt enable\n", __func__);
	}
	spin_unlock_irqrestore(&rmnet_usb_hlt_lock, flags);
//++SSD_RIL:20120814: For CPU/Freq min default value
	if (is_enable_hlt == 1 && rnmet_usb_cpu_freq_enabled == 1) {
		rmnet_usb_freq_timer_disable();
	}
//--SSD_RIL
}
static void omap2_pm_end(void)
{
	suspend_state = PM_SUSPEND_ON;
	enable_hlt();
}
Esempio n. 8
0
static void omap2_pm_finish(void)
{
	enable_hlt();
}
Esempio n. 9
0
static void cpu_hotplug_done(void)
{
	cpu_hotplug.active_writer = NULL;
	mutex_unlock(&cpu_hotplug.lock);
	enable_hlt();
}
Esempio n. 10
0
File: pm.c Progetto: ivdok/linux
static void omap_pm_end(void)
{
	enable_hlt();
	return;
}
Esempio n. 11
0
static void shmobile_suspend_end(void)
{
	enable_hlt();
}