0218-cpufreq-Temporarily-ignore-io_is_busy-1.patch 1002 B

12345678910111213141516171819202122232425262728293031
  1. From dd1c9e1693db72a6dd5c7a62fbfae4c30b97d5d9 Mon Sep 17 00:00:00 2001
  2. From: Phil Elwell <phil@raspberrypi.org>
  3. Date: Wed, 30 Mar 2016 17:23:15 +0100
  4. Subject: [PATCH] cpufreq: Temporarily ignore io_is_busy=1
  5. To speed testing of the new sdhost driver that adapts to changes in
  6. core_freq, hack the on-demand governor to treat io_is_busy=1 as
  7. io_is_busy=0. The io_is_busy feature can still be forced using
  8. io_is_busy=2.
  9. Signed-off-by: Phil Elwell <phil@raspberrypi.org>
  10. ---
  11. drivers/cpufreq/cpufreq_ondemand.c | 7 ++++++-
  12. 1 file changed, 6 insertions(+), 1 deletion(-)
  13. --- a/drivers/cpufreq/cpufreq_ondemand.c
  14. +++ b/drivers/cpufreq/cpufreq_ondemand.c
  15. @@ -307,7 +307,12 @@ static ssize_t store_io_is_busy(struct d
  16. ret = sscanf(buf, "%u", &input);
  17. if (ret != 1)
  18. return -EINVAL;
  19. - od_tuners->io_is_busy = !!input;
  20. + // XXX temporary hack
  21. + if (input > 1)
  22. + input = 1;
  23. + else
  24. + input = 0;
  25. + od_tuners->io_is_busy = input;
  26. /* we need to re-evaluate prev_cpu_idle */
  27. for_each_online_cpu(j) {