Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 1 | /* |
| 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 Dharmapurikar | efaca4f | 2011-12-27 16:24:07 -0800 | [diff] [blame] | 16 | #include <mach/cpuidle.h> |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 17 | #include "idle.h" |
Matt Wagantall | 7cca464 | 2012-02-01 16:43:24 -0800 | [diff] [blame] | 18 | #include "pm.h" |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 19 | |
| 20 | void arch_idle(void) |
| 21 | { } |
| 22 | |
| 23 | void msm_pm_set_platform_data(struct msm_pm_platform_data *data, int count) |
| 24 | { } |
| 25 | |
Mahesh Sivasubramanian | d23add1 | 2011-11-18 14:30:11 -0700 | [diff] [blame] | 26 | void msm_pm_cpu_enter_lowpower(unsigned cpu) |
| 27 | { |
| 28 | asm("wfi" |
| 29 | : |
| 30 | : |
| 31 | : "memory", "cc"); |
| 32 | } |
| 33 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 34 | void msm_pm_set_max_sleep_time(int64_t max_sleep_time_ns) { } |
Praveen Chidambaram | 3895bde | 2012-05-14 19:42:40 +0530 | [diff] [blame] | 35 | |
| 36 | void msm_pm_set_irq_extns(struct msm_pm_irq_calls *irq_calls) {} |
| 37 | |
Steve Muckle | f132c6c | 2012-06-06 18:30:57 -0700 | [diff] [blame] | 38 | int msm_pm_idle_prepare(struct cpuidle_device *dev, |
| 39 | struct cpuidle_driver *drv, int index) |
Praveen Chidambaram | 3895bde | 2012-05-14 19:42:40 +0530 | [diff] [blame] | 40 | { |
| 41 | return -ENOSYS; |
| 42 | } |
| 43 | |
| 44 | int msm_pm_idle_enter(enum msm_pm_sleep_mode sleep_mode) |
| 45 | { |
| 46 | return -ENOSYS; |
| 47 | } |
| 48 | |