diff options
author | Kai-Heng Feng <kai.heng.feng@canonical.com> | 2021-04-30 14:07:35 +0800 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2021-05-11 13:44:18 +0200 |
commit | 79d341e26ebcdbc622348aaaab6f8f89b6fdb25f (patch) | |
tree | 76cb329cdd3b1291107b3b2ecfef69e581cdc4a4 /drivers/platform/surface/aggregator/controller.c | |
parent | b09aaa3f2c0edeeed670cd29961a0e35bddc78cf (diff) | |
download | linux-79d341e26ebcdbc622348aaaab6f8f89b6fdb25f.tar.gz linux-79d341e26ebcdbc622348aaaab6f8f89b6fdb25f.tar.bz2 linux-79d341e26ebcdbc622348aaaab6f8f89b6fdb25f.zip |
platform/x86: hp_accel: Avoid invoking _INI to speed up resume
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>
Diffstat (limited to 'drivers/platform/surface/aggregator/controller.c')
0 files changed, 0 insertions, 0 deletions