[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <cff27f42-2cf7-afbe-38eb-eef0a100bb27@amd.com>
Date: Wed, 19 Apr 2023 09:29:45 -0500
From: "Moger, Babu" <babu.moger@....com>
To: Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>
Cc: corbet@....net, Reinette Chatre <reinette.chatre@...el.com>,
tglx@...utronix.de, mingo@...hat.com, bp@...en8.de,
fenghua.yu@...el.com, dave.hansen@...ux.intel.com, x86@...nel.org,
hpa@...or.com, paulmck@...nel.org, akpm@...ux-foundation.org,
quic_neeraju@...cinc.com, rdunlap@...radead.org,
damien.lemoal@...nsource.wdc.com, songmuchun@...edance.com,
peterz@...radead.org, jpoimboe@...nel.org, pbonzini@...hat.com,
chang.seok.bae@...el.com, pawan.kumar.gupta@...ux.intel.com,
jmattson@...gle.com, daniel.sneddon@...ux.intel.com,
sandipan.das@....com, tony.luck@...el.com, james.morse@....com,
linux-doc@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>,
bagasdotme@...il.com, eranian@...gle.com,
christophe.leroy@...roup.eu, jarkko@...nel.org,
adrian.hunter@...el.com, quic_jiles@...cinc.com,
peternewman@...gle.com
Subject: Re: [PATCH v4 3/7] x86/resctrl: Rename rftype flags for consistency
Hi Jarvinen,
On 4/19/23 07:44, Ilpo Järvinen wrote:
> On Mon, 17 Apr 2023, Babu Moger wrote:
>
>> The rftype flags have two different prefixes even though they are used
>> for the same purpose. Change the prefix to RFTYPE_ for all the flags.
>>
>> Signed-off-by: Babu Moger <babu.moger@....com>
>> ---
>> arch/x86/kernel/cpu/resctrl/internal.h | 8 +++---
>> arch/x86/kernel/cpu/resctrl/rdtgroup.c | 42 ++++++++++++++++----------------
>> 2 files changed, 25 insertions(+), 25 deletions(-)
>>
>> diff --git a/arch/x86/kernel/cpu/resctrl/internal.h b/arch/x86/kernel/cpu/resctrl/internal.h
>> index 62767774810d..c4fc5a1c630c 100644
>> --- a/arch/x86/kernel/cpu/resctrl/internal.h
>> +++ b/arch/x86/kernel/cpu/resctrl/internal.h
>> @@ -248,10 +248,10 @@ struct rdtgroup {
>> #define RFTYPE_TOP BIT(6)
>> #define RFTYPE_RES_CACHE BIT(8)
>> #define RFTYPE_RES_MB BIT(9)
>> -#define RF_CTRL_INFO (RFTYPE_INFO | RFTYPE_CTRL)
>> -#define RF_MON_INFO (RFTYPE_INFO | RFTYPE_MON)
>> -#define RF_TOP_INFO (RFTYPE_INFO | RFTYPE_TOP)
>> -#define RF_CTRL_BASE (RFTYPE_BASE | RFTYPE_CTRL)
>> +#define RFTYPE_CTRL_INFO (RFTYPE_INFO | RFTYPE_CTRL)
>> +#define RFTYPE_MON_INFO (RFTYPE_INFO | RFTYPE_MON)
>> +#define RFTYPE_TOP_INFO (RFTYPE_INFO | RFTYPE_TOP)
>> +#define RFTYPE_CTRL_BASE (RFTYPE_BASE | RFTYPE_CTRL)
>>
>> /* List of all resource groups */
>> extern struct list_head rdt_all_groups;
>
> This needs to be changed as well:
>
> * @fflags: File specific RF_* or RFTYPE_* flags
Yes. Thanks for pointing that. Will correct it in next revision.
--
Thanks
Babu Moger
Powered by blists - more mailing lists