Re: [External] Re: [PATCH 3/3] platform/x86: thinkpad_acpi: Add platform profile support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Andy,

On 10/11/2020 05:06, Andy Shevchenko wrote:
On Tue, Nov 10, 2020 at 5:34 AM Mark Pearson <markpearson@xxxxxxxxxx> wrote:

Add support to thinkpad_acpi for Lenovo platforms that have DYTC
version 5 support or newer to use the platform profile feature.

This will allow users to determine and control the platform modes
between low-power, balanced operation and performance modes.

...

+#if defined(CONFIG_ACPI_PLATFORM_PROFILE)
+               platform_profile_unregister();
+#endif
+               dytc_available = false;

+#if defined(CONFIG_ACPI_PLATFORM_PROFILE)
+                       dytc_profile_refresh();
+#endif

Better to use (e.g. test coverage) if (IS_BUILTIN()) / if (IS_ENABLE()) / etc.

Thanks - I wasn't aware of those. I'll update

Mark



[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux