From 92cfb8860254bdb9e5217a12569a957cecf95199 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Fri, 16 Jun 2023 09:24:01 +0000 Subject: [PATCH] Revert "scripts/gdb: bail early if there are no generic PD" This reverts commit 30ac77e9952504fdf72dbf8b467df1bf0a75934a 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 --- scripts/gdb/linux/genpd.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/gdb/linux/genpd.py b/scripts/gdb/linux/genpd.py index b53649c0a77a..39cd1abd8559 100644 --- a/scripts/gdb/linux/genpd.py +++ b/scripts/gdb/linux/genpd.py @@ -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');