# RE: \[RFC PATCH v12 05/11\] time: Add mechanism to recognize clocksource in time\_get\_snapshot

- From: Jianyong Wu \<hidden\>
- Date: 2020-05-29 01:05:48 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2020/05/5982684
- Thread: https://ratatoskr.run/netdev/2020/05/5974750/t.md

```text
Hi Thomas,

> -----Original Message-----
> From: Thomas Gleixner <redacted>
> Sent: Friday, May 29, 2020 12:36 AM
> To: Jianyong Wu <redacted>; <redacted>;
> yangbo.lu@nxp.com; john.stultz@linaro.org; pbonzini@redhat.com;
> sean.j.christopherson@intel.com; maz@kernel.org;
> richardcochran@gmail.com; Mark Rutland [ref];
> will@kernel.org; Suzuki Poulose [ref]; Steven Price
> [ref]
> Cc: <redacted>; <redacted>;
> kvmarm@lists.cs.columbia.edu; kvm@vger.kernel.org; Steve Capper
> [ref]; Kaly Xin [ref]; Justin He
> [ref]; Wei Chen [ref]; Jianyong Wu
> [ref]; nd [ref]
> Subject: Re: [RFC PATCH v12 05/11] time: Add mechanism to recognize
> clocksource in time_get_snapshot
> 
> Jianyong Wu [ref] writes:
> > From: Thomas Gleixner <redacted> diff --git
> > a/kernel/time/clocksource.c b/kernel/time/clocksource.c index
> > 7cb09c4cf21c..a8f65b3e4ec8 100644
> > --- a/kernel/time/clocksource.c
> > +++ b/kernel/time/clocksource.c
> > @@ -928,6 +928,9 @@ int __clocksource_register_scale(struct
> > clocksource *cs, u32 scale, u32 freq)
> >
> >  	clocksource_arch_init(cs);
> >
> > +if (WARN_ON_ONCE((unsigned int)cs->id >= CSID_MAX))
> > +		cs->id = CSID_GENERIC;
> > +
> 
> This is white space damaged and certainly not from me.

Sorry, I will fix it.

Thanks
Jianyong 


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
```
