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