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:
Greg Kroah-Hartman 2023-06-16 09:24:01 +00:00
parent 2bd517d6bc
commit 92cfb88602

View File

@ -5,7 +5,7 @@
import gdb
import sys
from linux.utils import CachedType, gdb_eval_or_none
from linux.utils import CachedType
from linux.lists import list_for_each_entry
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)))
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(' /device runtime status\n');
gdb.write('----------------------------------------------------------------------\n');