/* * 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>staticintimx5_cpuidle_enter(structcpuidle_device*dev,structcpuidle_driver*drv,intindex){arm_pm_idle();returnindex;}staticstructcpuidle_driverimx5_cpuidle_driver={.name="imx5_cpuidle",.owner=THIS_MODULE,.states[0]={.enter=imx5_cpuidle_enter,.exit_latency=2,.target_residency=1,.flags=CPUIDLE_FLAG_TIME_VALID,.name="IMX5 SRPG",.desc="CPU state retained,powered off",},.state_count=1,};int__initimx5_cpuidle_init(void){returncpuidle_register(&imx5_cpuidle_driver,NULL);}