brcm2708: update linux 4.4 patches to latest version
[openwrt/staging/dedeckeh.git] / target / linux / brcm2708 / patches-4.4 / 0226-Revert-Revert-cpufreq-Temporarily-ignore-io_is_busy-.patch
1 From 086b24cf253a55acfaa185310fa19b7493ddbe3f 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
6 This reverts commit c353af0f83220068c10f6593b1767576b9b6cc18.
7 ---
8 drivers/cpufreq/cpufreq_ondemand.c | 7 ++++++-
9 1 file changed, 6 insertions(+), 1 deletion(-)
10
11 --- a/drivers/cpufreq/cpufreq_ondemand.c
12 +++ b/drivers/cpufreq/cpufreq_ondemand.c
13 @@ -307,7 +307,12 @@ static ssize_t store_io_is_busy(struct d
14 ret = sscanf(buf, "%u", &input);
15 if (ret != 1)
16 return -EINVAL;
17 - od_tuners->io_is_busy = !!input;
18 + // XXX temporary hack
19 + if (input > 1)
20 + input = 1;
21 + else
22 + input = 0;
23 + od_tuners->io_is_busy = input;
24
25 /* we need to re-evaluate prev_cpu_idle */
26 for_each_online_cpu(j) {