kernel: bump kernel 4.4 to 4.4.129 for 17.01
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.4 / 0218-cpufreq-Temporarily-ignore-io_is_busy-1.patch
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
6 To speed testing of the new sdhost driver that adapts to changes in
7 core_freq, hack the on-demand governor to treat io_is_busy=1 as
8 io_is_busy=0. The io_is_busy feature can still be forced using
9 io_is_busy=2.
10
11 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
12 ---
13 drivers/cpufreq/cpufreq_ondemand.c | 7 ++++++-
14 1 file changed, 6 insertions(+), 1 deletion(-)
15
16 --- a/drivers/cpufreq/cpufreq_ondemand.c
17 +++ b/drivers/cpufreq/cpufreq_ondemand.c
18 @@ -307,7 +307,12 @@ static ssize_t store_io_is_busy(struct d
19 ret = sscanf(buf, "%u", &input);
20 if (ret != 1)
21 return -EINVAL;
22 - od_tuners->io_is_busy = !!input;
23 + // XXX temporary hack
24 + if (input > 1)
25 + input = 1;
26 + else
27 + input = 0;
28 + od_tuners->io_is_busy = input;
29
30 /* we need to re-evaluate prev_cpu_idle */
31 for_each_online_cpu(j) {