Adaptive Scheduling of Energy Harvesting Real-Time Systems