From b077ae84d91d409586a26c571e7f546a7f505390 Mon Sep 17 00:00:00 2001 From: Finley Xiao Date: Thu, 24 Feb 2022 21:24:50 +0800 Subject: [PATCH] Revert "HACK: lib/kobject_uevent.c: ignore thermal uevent when suspend" This reverts commit fc2be569e8b518ff9279bd6ee29308fca3414059. Signed-off-by: Finley Xiao Change-Id: I647c757a003a61055211299260222d2f480ca317 --- lib/kobject_uevent.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/lib/kobject_uevent.c b/lib/kobject_uevent.c index 9d1946dfa176..c87d5b6a8a55 100644 --- a/lib/kobject_uevent.c +++ b/lib/kobject_uevent.c @@ -520,21 +520,6 @@ int kobject_uevent_env(struct kobject *kobj, enum kobject_action action, return 0; } - if (IS_ENABLED(CONFIG_ARCH_ROCKCHIP) && - IS_ENABLED(CONFIG_FREEZER) && - IS_ENABLED(CONFIG_ANDROID)) { - /* - * Android healthd try to listen power_supply subsystem uevent, - * but which will block system from suspend on big.LITTLE system - * because thermal_cooling_device_unregister will called when - * cpufreq_exit. So ignore this uevent when suspend. - */ - extern bool pm_freezing; - - if (pm_freezing && !strcmp(subsystem, "thermal")) - return 0; - } - /* environment buffer */ env = kzalloc(sizeof(struct kobj_uevent_env), GFP_KERNEL); if (!env)