Skip to content

switch platform profiles with Lenovo laptops

Gergo Koteles linux-acpi lkml platform-driver-x86 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest3 patches 0 repliesNew
  2. v53 patches 3 repliesSuperseded
  3. v43 patches 4 repliesSuperseded

Changes in v6 from the cover letter

- use PLATFORM_PROFILE_LAST instead of ARRAY_SIZE(profile_names) for consistency

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ACPI: platform-profile: add platform_profile_cycle()drivers/acpi/platform_profile.c include/linux/platform_profile.h+40 -00 replies
2/3platform/x86: ideapad-laptop: switch platform profiles using thermal management keydrivers/platform/x86/ideapad-laptop.c+5 -20 replies
3/3platform/x86: thinkpad_acpi: use platform_profile_cycle()drivers/platform/x86/thinkpad_acpi.c+2 -170 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v6 yet.

Read the v6 thread

Cover letter [PATCH v6 0/3] switch platform profiles with Lenovo laptops

Hi All,

This patch series adds a platform_profile_cycle function to the platform profile module, which allows modules to easily switch between the enabled profiles.

Use it in ideapad-laptop and thinkpad-acpi modules.

Best regards,
Gergo

Changes in v6:
- use PLATFORM_PROFILE_LAST instead of ARRAY_SIZE(profile_names) for consistency

Changes in v5:
- use find_next_bit_wrap function to find the next enabled profile instead of multiple ffs calls

Changes in v4:
- move the cycle to the platform profile module where it can switch between the enabled profiles
- add a patch to use it in the thinkpad-acpi module

Changes in v3:
- add dytc_profile_cycle function

Changes in v2:
- only switch platform profiles if supported, otherwise keep the behavior.

[5]: https://lore.kernel.org/all/[email protected]/
[4]: https://lore.kernel.org/all/[email protected]/
[3]: https://lore.kernel.org/all/7c358ad8dd6de7889fa887954145a181501ac362.17122>
[2]: https://lore.kernel.org/all/797884d8cab030d3a2b656dba67f3c423cc58be7.17121>
[1]: https://lore.kernel.org/all/85254ce8e87570c05e7f04d6507701bef954ed75.17121>

Gergo Koteles (3):
ACPI: platform-profile: add platform_profile_cycle() platform/x86: ideapad-laptop: switch platform profiles using thermal
management key
platform/x86: thinkpad_acpi: use platform_profile_cycle()

 drivers/acpi/platform_profile.c       | 39 +++++++++++++++++++++++++++
 drivers/platform/x86/ideapad-laptop.c |  7 +++--
 drivers/platform/x86/thinkpad_acpi.c  | 19 ++-----------
 include/linux/platform_profile.h      |  1 +
 4 files changed, 47 insertions(+), 19 deletions(-)

base-commit: 39cd87c4eb2b893354f3b850f916353f2658ae6f

Signature · 1 line
2.44.0