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

123456789101112131415161718192021222324252627
  1. From 846df5e9c9f2510a68c26922eb6a04b76c576357 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 226/381] Revert "Revert "cpufreq: Temporarily ignore
  5. io_is_busy=1""
  6. This reverts commit c353af0f83220068c10f6593b1767576b9b6cc18.
  7. ---
  8. drivers/cpufreq/cpufreq_ondemand.c | 7 ++++++-
  9. 1 file changed, 6 insertions(+), 1 deletion(-)
  10. --- a/drivers/cpufreq/cpufreq_ondemand.c
  11. +++ b/drivers/cpufreq/cpufreq_ondemand.c
  12. @@ -307,7 +307,12 @@ static ssize_t store_io_is_busy(struct d
  13. ret = sscanf(buf, "%u", &input);
  14. if (ret != 1)
  15. return -EINVAL;
  16. - od_tuners->io_is_busy = !!input;
  17. + // XXX temporary hack
  18. + if (input > 1)
  19. + input = 1;
  20. + else
  21. + input = 0;
  22. + od_tuners->io_is_busy = input;
  23. /* we need to re-evaluate prev_cpu_idle */
  24. for_each_online_cpu(j) {