RE: [PATCH v5 3/6] timekeeping: Add clocksource to system_time_snapshot

From: Thomas Gleixner
Date: Wed Oct 16 2019 - 06:26:26 EST


On Wed, 16 Oct 2019, Jianyong Wu (Arm Technology China) wrote:
> On Wed, 16 Oct 2019, Thomas Gleixner wrote:
> > On Tue, 15 Oct 2019, Jianyong Wu wrote:
> > +/* Enum to give clocksources a unique identifier */ enum
> > +clocksource_ids {
> > + CSID_GENERIC = 0,
> > + CSID_ARM_ARCH_COUNTER,
> > + CSID_MAX,
> > +};
> > +
>
> Does this mean I must add clocksource id for all kinds of ARCHs and
> update all the code which have checked clocksource in the old way?

What is the old way? No code exists which can access the current
clocksource pointer because the core code does not expose it at all.

Thanks,

tglx