Re: x86 : Kconfig : INTEL_PMC_CORE not specific enough

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

 



> Long story, but main concern here, that if you do s/ATOM/X86/ it will
> be more clear since we provide as less kernels as possible to cover
> all x86 architectures.
>
> Currently we have one kernel per:
> - any x86_64 case
> - any i686 case
> - uniprocessor i586 TSC case (Intel Quark)
> - (the rest exotic cases which is probably no-one using anymore)
>
> Your change disrupts this quite badly.

This simplifies your situation, but it forces everybody else to
include extra code they will never use.

>
> So, I think your point that you don't need it by default, and here is
> another story related to the design of Intel BayTrail / CherryTrail
> platforms where we have a nasty bug and we can't use the driver as a
> module.
>

Please explain the history so we can understand.


In more detail, here are the Kconfig dependencies:

- Symbol: PMC_ATOM [=y]
- Depends on: X86 [=y] && PCI [=y]
- Selects: COMMON_CLK [=y]

Symbol: COMMON_CLK [=y]
- Selected by:  PMC_ATOM [=y] && X86 [=y] && PCI [=y]
- Selects: HAVE_CLK_PREPARE [=y] && CLKDEV_LOOKUP [=y] && SRCU [=y] &&
RATIONAL [=y]

So having _any_ X86 and PCI pulls in these four files:

drivers/clk/x86/clk-pmc-atom.c
drivers/platform/x86/pmc_atom.c (you are right, I cut-and-pasted the
wrong file earlier)
drivers/clk/clkdev.c
lib/rational.c


>> Would this change (or something similar) make sense?
>
> No.
>

Okay, my novice solution isn't the right way. There must be an elegant
way to leave this configured in by default (what you want), and still
be able to turn it off if you desire (what I want).


> MATOM is for really old CPUs. Mentioned BayTrail et al rather normal
> x86 in that sense.
>
>>         select COMMON_CLK
>
> Definitely NAK by the reasons mentioned above.
>


- Matthew



[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux