Revert "scripts/gdb: bail early if there are no generic PD"
This reverts commit 30ac77e995
which is
commit f19c3c2959e465209ade1a7a699e6cbf4359ce78 upstream.
It is not needed in Android systems, and it breaks the ABI for no real
reason, so revert it.
Bug: 161946584
Change-Id: I96195afffc4e2bb06d16b6489548b4b475b6599c
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
parent
2bd517d6bc
commit
92cfb88602
@ -5,7 +5,7 @@
|
|||||||
import gdb
|
import gdb
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from linux.utils import CachedType, gdb_eval_or_none
|
from linux.utils import CachedType
|
||||||
from linux.lists import list_for_each_entry
|
from linux.lists import list_for_each_entry
|
||||||
|
|
||||||
generic_pm_domain_type = CachedType('struct generic_pm_domain')
|
generic_pm_domain_type = CachedType('struct generic_pm_domain')
|
||||||
@ -70,8 +70,6 @@ Output is similar to /sys/kernel/debug/pm_genpd/pm_genpd_summary'''
|
|||||||
gdb.write(' %-50s %s\n' % (kobj_path, rtpm_status_str(dev)))
|
gdb.write(' %-50s %s\n' % (kobj_path, rtpm_status_str(dev)))
|
||||||
|
|
||||||
def invoke(self, arg, from_tty):
|
def invoke(self, arg, from_tty):
|
||||||
if gdb_eval_or_none("&gpd_list") is None:
|
|
||||||
raise gdb.GdbError("No power domain(s) registered")
|
|
||||||
gdb.write('domain status children\n');
|
gdb.write('domain status children\n');
|
||||||
gdb.write(' /device runtime status\n');
|
gdb.write(' /device runtime status\n');
|
||||||
gdb.write('----------------------------------------------------------------------\n');
|
gdb.write('----------------------------------------------------------------------\n');
|
||||||
|
Loading…
Reference in New Issue
Block a user