Energy and power awareness in hardware schedulers for energy harvesting IoT SoCs