With the new generic cpuidle framework for Arm/Arm64, it is much easier to write your platform-specific driver. Learn how in this tutorial.