blob: a0e01b4273d87c84004d9f05438ad423ceac64ab [file] [log] [blame]
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07001/*
2 * Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 and
6 * only version 2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 */
13
14#include <linux/module.h>
15
Abhijeet Dharmapurikarefaca4f2011-12-27 16:24:07 -080016#include <mach/cpuidle.h>
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070017#include "idle.h"
Matt Wagantall7cca4642012-02-01 16:43:24 -080018#include "pm.h"
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070019
20void arch_idle(void)
21{ }
22
23void msm_pm_set_platform_data(struct msm_pm_platform_data *data, int count)
24{ }
25
Mahesh Sivasubramaniand23add12011-11-18 14:30:11 -070026void msm_pm_cpu_enter_lowpower(unsigned cpu)
27{
28 asm("wfi"
29 :
30 :
31 : "memory", "cc");
32}
33
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070034void msm_pm_set_max_sleep_time(int64_t max_sleep_time_ns) { }
Praveen Chidambaram3895bde2012-05-14 19:42:40 +053035
36void msm_pm_set_irq_extns(struct msm_pm_irq_calls *irq_calls) {}
37
38int msm_pm_idle_prepare(struct cpuidle_device *dev)
39{
40 return -ENOSYS;
41}
42
43int msm_pm_idle_enter(enum msm_pm_sleep_mode sleep_mode)
44{
45 return -ENOSYS;
46}
47