0226-Revert-Revert-cpufreq-Temporarily-ignore-io_is_busy-.patch 820 B

1234567891011121314151617181920212223242526
  1. From 322b3f1b3d2b9296147b07735f1a24c63872fc09 Mon Sep 17 00:00:00 2001
  2. From: popcornmix <popcornmix@gmail.com>
  3. Date: Mon, 4 Apr 2016 19:52:27 +0100
  4. Subject: [PATCH] Revert "Revert "cpufreq: Temporarily ignore io_is_busy=1""
  5. This reverts commit c353af0f83220068c10f6593b1767576b9b6cc18.
  6. ---
  7. drivers/cpufreq/cpufreq_ondemand.c | 7 ++++++-
  8. 1 file changed, 6 insertions(+), 1 deletion(-)
  9. --- a/drivers/cpufreq/cpufreq_ondemand.c
  10. +++ b/drivers/cpufreq/cpufreq_ondemand.c
  11. @@ -307,7 +307,12 @@ static ssize_t store_io_is_busy(struct d
  12. ret = sscanf(buf, "%u", &input);
  13. if (ret != 1)
  14. return -EINVAL;
  15. - od_tuners->io_is_busy = !!input;
  16. + // XXX temporary hack
  17. + if (input > 1)
  18. + input = 1;
  19. + else
  20. + input = 0;
  21. + od_tuners->io_is_busy = input;
  22. /* we need to re-evaluate prev_cpu_idle */
  23. for_each_online_cpu(j) {