Re: [PATCH 1/3] ACPI / adxl: Address translation interface using ACPI DSM

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

 



On Wed, Oct 10, 2018 at 11:25 PM Luck, Tony <tony.luck@xxxxxxxxx> wrote:
>
> On Wed, Oct 10, 2018 at 11:08:37PM +0200, Rafael J. Wysocki wrote:
> > > +config ACPI_ADXL
> > > +       bool "Physical address to DIMM address translation"
> > > +       def_bool n
> > > +       help
> > > +         Enable interface that calls into BIOS using a DSM (device
> > > +         specific method) to convert system physical addresses
> > > +         to DIMM (socket, channel, rank, dimm, etc.).
> > > +         Only available on some servers.
> > > +         Used by newer EDAC drivers.
> >
> > I'm still not sure why this has to be a user-selectable option.  If
> > the plan is to select it from the drivers that need it, why do we need
> > to ask about it?  And what if it is enabled, but no drivers use it?
> > Will it just be dead code then?
>
> Ah, now I see what you mean.  I should make this:
>
> config ACPI_ADXL
>         def_bool n
>
> right?

Yes, and you can simply do

config ACPI_ADXL
         bool

as it won't be enabled when not explicitly selected anyway.

> So the user isn't plagued by a question they don't understand.
> It will only be set if some other driver that need it selects it. So
> no way to include dead code.

Right.



[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