aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-msm/no-pm.c
blob: c28163f2e6dd6e44c9c94e1cf7e347e192eda9ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
 * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * only version 2 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

#include <linux/module.h>

#include <mach/cpuidle.h>
#include "idle.h"
#include "pm.h"

void arch_idle(void)
{ }

void msm_pm_set_platform_data(struct msm_pm_platform_data *data, int count)
{ }

void msm_pm_cpu_enter_lowpower(unsigned cpu)
{
	asm("wfi"
		:
		:
		: "memory", "cc");
}

void msm_pm_set_max_sleep_time(int64_t max_sleep_time_ns) { }

void msm_pm_set_irq_extns(struct msm_pm_irq_calls *irq_calls) {}

int msm_pm_idle_prepare(struct cpuidle_device *dev,
			struct cpuidle_driver *drv, int index)
{
	return -ENOSYS;
}

int msm_pm_idle_enter(enum msm_pm_sleep_mode sleep_mode)
{
	return -ENOSYS;
}