Energy saving in real-time systems