Optimization of CPU frequency for power optimization on Android mobile devices