cpufreq: sprd: move unused prototypes to blocked area 97/94097/1
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 27 Oct 2016 05:26:15 +0000 (14:26 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 27 Oct 2016 05:34:57 +0000 (14:34 +0900)
This patch blocks unused prototypes which causes following build
error on specific toolchains.

   In file included from include/asm-generic/percpu.h:6:0,
                    from /home/sw0312.kim/linux-3.10-sc7730/arch/arm/include/asm/percpu.h:50,
                    from include/linux/percpu.h:10,
                    from include/linux/kernel_stat.h:6,
                    from drivers/cpufreq/cpufreq_sprdemand.c:18:
   drivers/cpufreq/cpufreq_sprdemand.c: At top level:
   drivers/cpufreq/cpufreq_sprdemand.c:101:48: error: storage size of 'uwi' isn't known
    static DEFINE_PER_CPU(struct unplug_work_info, uwi);
                                                ^

Change-Id: Ida47ea5e16a2f3f8883afe37adf9fcb9975c9ef1
Reported-by: Sung-jae Park <nicesj@nicesj.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/cpufreq/cpufreq_sprdemand.c

index 23f9f09..35046b1 100644 (file)
@@ -88,6 +88,11 @@ struct unplug_work_info {
        struct dbs_data *dbs_data;
 };
 static DEFINE_PER_CPU(struct unplug_work_info, uwi);
+
+static DEFINE_SPINLOCK(g_lock);
+static unsigned int percpu_total_load[CONFIG_NR_CPUS] = {0};
+static unsigned int percpu_check_count[CONFIG_NR_CPUS] = {0};
+static int cpu_score = 0;
 #endif
 
 struct delayed_work plugin_work;
@@ -98,13 +103,6 @@ struct work_struct unplug_all_work;
 static int cpu_num_limit_temp;
 static void sprd_thm_unplug_cpu(struct work_struct *work);
 
-static DEFINE_PER_CPU(struct unplug_work_info, uwi);
-
-static DEFINE_SPINLOCK(g_lock);
-static unsigned int percpu_total_load[CONFIG_NR_CPUS] = {0};
-static unsigned int percpu_check_count[CONFIG_NR_CPUS] = {0};
-static int cpu_score = 0;
-
 /* FIXME. default touch boost is enabled */
 #define CONFIG_TOUCH_BOOST