summaryrefslogtreecommitdiff
path: root/drivers
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-03-20 17:44:13 +0900
commit660a1848c82edac2f558d2f6e9c1b4e8d781892a (patch)
tree674872e3573d957d1c77519c437f159470b2e733 /drivers
parent29bb09623d868f61a039d19d2052e88b3cfa1db8 (diff)
downloadlinux-3.10-660a1848c82edac2f558d2f6e9c1b4e8d781892a.tar.gz
linux-3.10-660a1848c82edac2f558d2f6e9c1b4e8d781892a.tar.bz2
linux-3.10-660a1848c82edac2f558d2f6e9c1b4e8d781892a.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')
-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;