Kai-Heng Feng 515181e38e platform/x86: hp_accel: Avoid invoking _INI to speed up resume
[ Upstream commit 79d341e26ebcdbc622348aaaab6f8f89b6fdb25f ]

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: Kai-Heng Feng <kai.heng.feng@canonical.com>
Acked-by: Éric Piel <eric.piel@trempplin-utc.net>
Link: https://lore.kernel.org/r/20210430060736.590321-1-kai.heng.feng@canonical.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-06-03 09:00:39 +02:00
..
2020-08-07 18:48:15 -07:00
2021-02-17 11:02:24 +01:00
2020-10-16 12:21:15 -07:00
2020-07-23 12:56:49 +02:00
2020-10-28 19:12:03 +01:00
2021-06-03 09:00:31 +02:00
2020-10-28 19:12:03 +01:00