Re: [PATCH v3] intel_idle: introduce 'no_native' module parameter

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

 



On Wed, 2025-02-12 at 07:41 -0500, David Arcari wrote:
> - #ifdef the code that doesn't compile
> - default no_acpi=true in the !CONFIG_ACPI_PROCESSOR_CSTATE case
> 
> I sort of like the second option better, but I worry about the 
> documentation.  Specifically:
> 
> "In the case that ACPI is not configured these flags have no impact
> +on functionality."
> 
> I guess that is still true.
> 
> Perhaps there is a better option.  What do you think?

I've not been involved into kernel that much for long time. In old days
sprinkling #ifdefs around was an anti-pattern. Most probably nowadays too. So
the second option sounds better to me.

Artem.





[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux