Re: [PATCH v8 01/13] arch/resctrl: Start renaming the rdt files to more generic names
From: Borislav Petkov
Date: Sun Nov 18 2018 - 09:07:46 EST
Just to state it here on the thread: prefix should be "x86/resctrl" as
we said earlier. But that will be addressed in the next iteration, as we
agreed offlist.
On Fri, Nov 16, 2018 at 08:54:22PM +0000, Moger, Babu wrote:
> New generation of AMD processors start supporting RDT(or QOS) features.
> With more than one vendors supporting these features, it seems more
> appropriate to rename these files.
>
> Changed intel_rdt to resctrl where applicable.
>
> Signed-off-by: Babu Moger <babu.moger@xxxxxxx>
> Reviewed-by: Borislav Petkov <bp@xxxxxxx>
> ---
> arch/x86/include/asm/{intel_rdt_sched.h => resctrl_sched.h} | 0
> arch/x86/kernel/cpu/Makefile | 6 +++---
> arch/x86/kernel/cpu/{intel_rdt.c => resctrl.c} | 4 ++--
> arch/x86/kernel/cpu/{intel_rdt.h => resctrl.h} | 6 +++---
> .../cpu/{intel_rdt_ctrlmondata.c => resctrl_ctrlmondata.c} | 2 +-
> .../kernel/cpu/{intel_rdt_monitor.c => resctrl_monitor.c} | 2 +-
> .../cpu/{intel_rdt_pseudo_lock.c => resctrl_pseudo_lock.c} | 6 +++---
> ..._rdt_pseudo_lock_event.h => resctrl_pseudo_lock_event.h} | 2 +-
> .../kernel/cpu/{intel_rdt_rdtgroup.c => resctrl_rdtgroup.c} | 4 ++--
> arch/x86/kernel/process_32.c | 2 +-
> arch/x86/kernel/process_64.c | 2 +-
> 11 files changed, 18 insertions(+), 18 deletions(-)
> rename arch/x86/include/asm/{intel_rdt_sched.h => resctrl_sched.h} (100%)
> rename arch/x86/kernel/cpu/{intel_rdt.c => resctrl.c} (99%)
> rename arch/x86/kernel/cpu/{intel_rdt.h => resctrl.h} (99%)
> rename arch/x86/kernel/cpu/{intel_rdt_ctrlmondata.c => resctrl_ctrlmondata.c} (99%)
> rename arch/x86/kernel/cpu/{intel_rdt_monitor.c => resctrl_monitor.c} (99%)
> rename arch/x86/kernel/cpu/{intel_rdt_pseudo_lock.c => resctrl_pseudo_lock.c} (99%)
> rename arch/x86/kernel/cpu/{intel_rdt_pseudo_lock_event.h => resctrl_pseudo_lock_event.h} (95%)
> rename arch/x86/kernel/cpu/{intel_rdt_rdtgroup.c => resctrl_rdtgroup.c} (99%)
Ok, looking at this more, it looks like this:
ls -l arch/x86/kernel/cpu/resctrl*
arch/x86/kernel/cpu/resctrl.c
arch/x86/kernel/cpu/resctrl_ctrlmondata.c
arch/x86/kernel/cpu/resctrl.h
arch/x86/kernel/cpu/resctrl_monitor.c
arch/x86/kernel/cpu/resctrl_pseudo_lock.c
arch/x86/kernel/cpu/resctrl_pseudo_lock_event.h
arch/x86/kernel/cpu/resctrl_rdtgroup.c
Now, it looks to me like the whole resctrl thing begs for its own dir:
arch/x86/kernel/cpu/resctrl/core.c
arch/x86/kernel/cpu/resctrl/ctrlmondata.c
arch/x86/kernel/cpu/resctrl/internal.h
arch/x86/kernel/cpu/resctrl/monitor.c
arch/x86/kernel/cpu/resctrl/pseudo_lock.c
arch/x86/kernel/cpu/resctrl/pseudo_lock_event.h
arch/x86/kernel/cpu/resctrl/rdtgroup.c
This way, the whole RDT machinery will be confined to its own directory.
Hmm.
--
Regards/Gruss,
Boris.
Good mailing practices for 400: avoid top-posting and trim the reply.