Guest User

Untitled

a guest
Sep 26th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. diff --git a/drivers/soc/qcom/core_ctl.c b/drivers/soc/qcom/core_ctl.c
  2. index 0148630..77f9a89 100644
  3. --- a/drivers/soc/qcom/core_ctl.c
  4. +++ b/drivers/soc/qcom/core_ctl.c
  5. @@ -454,7 +454,7 @@ static void update_running_avg(bool trigger_update)
  6. {
  7. int cpu;
  8. struct cpu_data *pcpu;
  9. - int avg, iowait_avg, big_avg, old_nrrun;
  10. + int avg, iowait_avg, old_nrrun;
  11. s64 now;
  12. unsigned long flags;
  13.  
  14. @@ -466,7 +466,7 @@ static void update_running_avg(bool trigger_update)
  15. return;
  16. }
  17. rq_avg_timestamp_ms = now;
  18. - sched_get_nr_running_avg(&avg, &iowait_avg, &big_avg);
  19. + sched_get_nr_running_avg(&avg, &iowait_avg);
  20.  
  21. spin_unlock_irqrestore(&state_lock, flags);
  22.  
  23. @@ -483,7 +483,6 @@ static void update_running_avg(bool trigger_update)
  24. * average which rounds up to 1 task.
  25. */
  26. avg = (avg + NR_RUNNING_TOLERANCE) / 100;
  27. - big_avg = (big_avg + NR_RUNNING_TOLERANCE) / 100;
  28.  
  29. for_each_possible_cpu(cpu) {
  30. pcpu = &per_cpu(cpu_state, cpu);
  31. @@ -499,7 +498,7 @@ static void update_running_avg(bool trigger_update)
  32. * is not easy to get given core control reacts much slower
  33. * than scheduler, and can't predict scheduler's behavior.
  34. */
  35. - pcpu->nrrun = pcpu->is_big_cluster ? big_avg : avg;
  36. + pcpu->nrrun = avg;
  37. if (pcpu->nrrun != old_nrrun) {
  38. if (trigger_update)
  39. apply_need(pcpu);
Add Comment
Please, Sign In to add comment