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 [off-list ref];
will@kernel.org; Suzuki Poulose [off-list ref]; Steven Price
[off-list ref]
Cc: <redacted>; <redacted>;
kvmarm@lists.cs.columbia.edu; kvm@vger.kernel.org; Steve Capper
[off-list ref]; Kaly Xin [off-list ref]; Justin He
[off-list ref]; Wei Chen [off-list ref]; Jianyong Wu
[off-list ref]; nd [off-list ref]
Subject: Re: [RFC PATCH v12 05/11] time: Add mechanism to recognize
clocksource in time_get_snapshot
Jianyong Wu [off-list ref] writes:
quoted
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