platform/x86: hp_accel: Avoid invoking _INI to speed up resume
stable inclusion from stable-5.10.42 commit 515181e38e9788a0fff038109dd62b8bf6819e76 bugzilla: 55093 CVE: NA -------------------------------- [ Upstream commit 79d341e2 ] hp_accel can take almost two seconds to resume on some HP laptops. The bottleneck is on evaluating _INI, which is only needed to run once. Resolve the issue by only invoking _INI when it's necessary. Namely, on probe and on hibernation restore. Signed-off-by: NKai-Heng Feng <kai.heng.feng@canonical.com> Acked-by: NÉric Piel <eric.piel@trempplin-utc.net> Link: https://lore.kernel.org/r/20210430060736.590321-1-kai.heng.feng@canonical.comSigned-off-by: NHans de Goede <hdegoede@redhat.com> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NChen Jun <chenjun102@huawei.com> Acked-by: NWeilong Chen <chenweilong@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录