| * Copyright (C) 2012 Freescale Semiconductor, Inc. |
| * This program is free software; you can redistribute it and/or modify |
| * it under the terms of the GNU General Public License version 2 as |
| * published by the Free Software Foundation. |
| #include <linux/cpuidle.h> |
| #include <linux/module.h> |
| #include <asm/system_misc.h> |
| static int imx5_cpuidle_enter(struct cpuidle_device *dev, |
| struct cpuidle_driver *drv, int index) |
| static struct cpuidle_driver imx5_cpuidle_driver = { |
| .enter = imx5_cpuidle_enter, |
| .desc = "CPU state retained,powered off", |
| int __init imx5_cpuidle_init(void) |
| return cpuidle_register(&imx5_cpuidle_driver, NULL); |