Skip to content
Snippets Groups Projects
Commit 614a1eae authored by Lingutla Chandrasekhar's avatar Lingutla Chandrasekhar
Browse files

ldrp-v2: sched-info: Fix active cpu verification


If user isolates all available online cpus, then current code doesn't
report the active cpus warning. Fix this by getting no. of active cpus
from online and isolated cpus.

Change-Id: Ic4dee5fd00c9e29b895a9013fac2574835510b01
Signed-off-by: default avatarLingutla Chandrasekhar <clingutla@codeaurora.org>
parent 837d31c1
No related branches found
No related tags found
No related merge requests found
...@@ -68,11 +68,12 @@ def verify_active_cpus(ramdump): ...@@ -68,11 +68,12 @@ def verify_active_cpus(ramdump):
else: else:
min_req_cpus = 1 min_req_cpus = 1
if (cluster_nr_oncpus < min_req_cpus) or (cluster_nr_isocpus > min_req_cpus): if ((cluster_nr_oncpus - cluster_nr_isocpus) < min_req_cpus):
print_out_str("\n************ WARNING **************\n") print_out_str("\n************ WARNING **************\n")
print_out_str("\tMinimum active cpus are not available in the cluster {0} \n".format(i)) print_out_str("\tMinimum active cpus are not available in the cluster {0} \n".format(i))
print_out_str("\tCluster cpus: {0:b} Online cpus: {1:b} Isolated cpus: {2:b}\n".format( print_out_str("\tCluster cpus: {0:b} Online cpus: {1:b} Isolated cpus: {2:b}\n".format(
cluster_cpus, cluster_online_cpus, cluster_isolated_cpus)) cluster_cpus, cluster_online_cpus, cluster_isolated_cpus))
print_out_str("\n***********************************\n")
@register_parser('--sched-info', 'Verify scheduler\'s various parameter status') @register_parser('--sched-info', 'Verify scheduler\'s various parameter status')
class Schedinfo(RamParser): class Schedinfo(RamParser):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment