summaryrefslogtreecommitdiff
path: root/drivers/cpufreq
diff options
context:
space:
mode:
authorLukasz Majewski <l.majewski@samsung.com>2014-03-04 12:20:34 +0100
committerChanho Park <chanho61.park@samsung.com>2014-11-18 11:47:09 +0900
commitf52baeb44598123417c526d2fc679153af512911 (patch)
treef40a021791b7f492c630fdaa6b5d52f3fd2f7ac3 /drivers/cpufreq
parentcdcfec3f9be48caf6e38e41c022e717d83fade51 (diff)
downloadlinux-3.10-f52baeb44598123417c526d2fc679153af512911.tar.gz
linux-3.10-f52baeb44598123417c526d2fc679153af512911.tar.bz2
linux-3.10-f52baeb44598123417c526d2fc679153af512911.zip
cpufreq:LAB:cosmetic: Cosmetic code cleanup
Initialization of static variable is not necessary, since it will be placed at BSS section. Also proper format comments have been added. Change-Id: Id5e30a97d7d3cdb851f09a69e944c77223fa8a82 Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r--drivers/cpufreq/cpufreq_lab.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/cpufreq/cpufreq_lab.c b/drivers/cpufreq/cpufreq_lab.c
index 76f6b204d09..215f322af0f 100644
--- a/drivers/cpufreq/cpufreq_lab.c
+++ b/drivers/cpufreq/cpufreq_lab.c
@@ -34,7 +34,8 @@
#define LB_MIN_FREQ ~1UL
#define LB_ONDEMAND 0
-/* Pre-calculated summation of weight, 0.5
+/*
+ * Pre-calculated summation of weight, 0.5
* 1
* 1 + 0.5^1 = 1.5
* 1 + 0.5^1 + 0.5^2 = 1.75
@@ -61,7 +62,8 @@ static struct lb_wq_boost_data {
struct work_struct work;
} lb_boost_data;
-/* Calculate average of idle time with weighting 50% less to older one.
+/*
+ * Calculate average of idle time with weighting 50% less to older one.
* With weight, average can be affected by current phase more rapidly than
* normal average. And it also has tolerance for temporary fluctuation of
* idle time as normal average has.
@@ -110,7 +112,7 @@ static void lb_check_cpu(int cpu, unsigned int load)
struct od_cpu_dbs_info_s *dbs_info = &per_cpu(od_cpu_dbs_info, cpu);
struct cpufreq_policy *policy = dbs_info->cdbs.cur_policy;
unsigned int freq = 0, op;
- static int cnt = 0;
+ static int cnt;
int i, idx, bs;
idle_cpus = 0;