Re: [PATCH v3 2/2] x86/resctrl: Correct MBM total and local values
From: Fenghua Yu
Date: Tue Oct 27 2020 - 14:03:01 EST
Hi, Boris,
On Tue, Oct 27, 2020 at 06:57:48PM +0100, Borislav Petkov wrote:
> On Wed, Oct 14, 2020 at 12:49:27AM +0000, Fenghua Yu wrote:
> > +static const struct mbm_correction_factor_table {
> > + u32 rmidthreshold;
> > + u64 cf;
> > +} mbm_cf_table[] = {
>
> That thing wants to be __initdata, AFAICT, since the only function
> touching it is __init.
>
> Made it so.
You are right. The correction value is read from this table only
once in __init. So this table should be __initdata.
Thank you very much for your review!
-Fenghua