Skip to content
Snippets Groups Projects
Commit 64384cb7 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents a66f79f9 614a1eae
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