pass: Remove dead-code related to the number of cpu 98/118398/1
authorChanwoo Choi <cw00.choi@samsung.com>
Fri, 10 Mar 2017 07:33:17 +0000 (16:33 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 10 Mar 2017 07:33:17 +0000 (16:33 +0900)
This patch just removes the dead code which is related to the number of CPU
in the same cluster. The pass uses the 'num_cpus' variable of the 'struct
pass_hotplug'.

Change-Id: I6775124230d45f572e99bdb070b786267d6c8c68
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
src/pass/pass.c

index ce85a0289483df31a00c4d62d7d9ab05ae59b8c0..40ae21582fd36937f3d001f776025c7d515a8ae4 100644 (file)
@@ -98,7 +98,6 @@ static int pass_resource_init(struct pass_policy *policy)
 {
        struct pass_resource *pass_res = to_pass_resource(policy);
        int max_freq = 0;
-       int max_cpu = 0;
        int ret;
        int i;
 
@@ -155,8 +154,6 @@ static int pass_resource_init(struct pass_policy *policy)
        for (i = 0; i < policy->num_levels; i++) {
                if (max_freq < policy->pass_table[i].limit_max_freq)
                        max_freq = policy->pass_table[i].limit_max_freq;
-               if (max_cpu < policy->pass_table[i].limit_min_cpu)
-                       max_cpu = policy->pass_table[i].limit_min_cpu;
                if (policy->pass_table[i].gov_timeout == 0)
                        policy->pass_table[i].gov_timeout = policy->gov_timeout;
        }