You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
Revert "HACK: lib/kobject_uevent.c: ignore thermal uevent when suspend"
This reverts commit fc2be569e8.
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I647c757a003a61055211299260222d2f480ca317
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user