Task DVFS with idle tasks

  Now the code can handle idle tasks
  between the real tasks